summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <queryselector@gmail.com>2013-04-22 21:07:43 -0400
committerNathan Dinsmore <queryselector@gmail.com>2013-04-22 21:07:43 -0400
commite642b1a1091b36f5b272e8db1ef9c555a1a01e55 (patch)
tree41f0ac773269298493a3b0223390d8064cbb65b9
parent020f95992d6e452751199ec18ab066fe2cf9d78c (diff)
downloadsnap-yow-e642b1a1091b36f5b272e8db1ef9c555a1a01e55.tar.gz
snap-yow-e642b1a1091b36f5b272e8db1ef9c555a1a01e55.zip
Fixed #72
Canceling a "Save as..." operation will no longer replace the selected project upon the next save.
-rw-r--r--gui.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index 7f58fdd..186716e 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();