summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2013-04-23 08:21:36 -0700
committerJens Mönig <jens@moenig.org>2013-04-23 08:21:36 -0700
commit3328d87f2fb95a800e775530e711343cde545e89 (patch)
tree32377b9296a58a78f35aa6851adf5cbd19c5b92a
parent8a7faaa7f595ca02d6238a4c02be346f083dd412 (diff)
parente642b1a1091b36f5b272e8db1ef9c555a1a01e55 (diff)
downloadsnap-byow-3328d87f2fb95a800e775530e711343cde545e89.tar.gz
snap-byow-3328d87f2fb95a800e775530e711343cde545e89.zip
Merge pull request #76 from queryselector/issue-72
Fixed #72
-rw-r--r--gui.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index 8e0b5d3..6314d85 100644
--- a/gui.js
+++ b/gui.js
@@ -3964,7 +3964,6 @@ ProjectDialogMorph.prototype.saveProject = function () {
this.ide.projectNotes = notes || this.ide.projectNotes;
if (name) {
- this.ide.setProjectName(name);
if (this.source === 'cloud') {
if (detect(
this.projectList,
@@ -3976,11 +3975,12 @@ ProjectDialogMorph.prototype.saveProject = function () {
) + '\n"' + name + '"?',
'Replace Project',
function () {
+ myself.ide.setProjectName(name);
myself.saveCloudProject();
}
-
);
} else {
+ this.ide.setProjectName(name);
myself.saveCloudProject();
}
} else { // 'local'
@@ -3994,12 +3994,14 @@ ProjectDialogMorph.prototype.saveProject = function () {
) + '\n"' + name + '"?',
'Replace Project',
function () {
+ myself.ide.setProjectName(name);
myself.ide.source = 'local';
myself.ide.saveProject(name);
myself.destroy();
}
);
} else {
+ this.ide.setProjectName(name);
myself.ide.source = 'local';
this.ide.saveProject(name);
this.destroy();