Bug 987 : "Save canceled" message when saving untitled sketches without renaming them in 0154
Last modified: 2008-11-04 10:40




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P1
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-10-27 23:38
tested on win-xp and os-x both with 154:

create a new sketch, write something in it, press save, dialog opens, choose a location, click
"ok". now you're back in processing and it says "Save Cancled." in the status bar, the sketch
still being in the temporary folder and marked modified.
Additional Comment #1 From fjen 2008-10-29 12:09
i found the problem:

in Sketch.java on line 743:

if (newName.equals(oldName)) {
return false; // Can't save a sketch over itself
}

the if-clause will be true for new unsafed sketches if they are not renamed in the dialog.
Additional Comment #2 From fry 2008-11-04 10:40
fixed for 0155, please test the svn to make sure no other regressions are
introduced.