1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix to FileBasedDocument to avoid spurious re-save requests.

This commit is contained in:
jules 2015-09-08 16:29:36 +01:00
parent d7812ff580
commit d46ea331da

View file

@ -169,7 +169,7 @@ FileBasedDocument::SaveResult FileBasedDocument::saveAs (const File& newFile,
setChangedFlag (false);
MouseCursor::hideWaitCursor();
changed(); // because the filename may have changed
sendChangeMessage(); // because the filename may have changed
return savedOk;
}
@ -185,7 +185,7 @@ FileBasedDocument::SaveResult FileBasedDocument::saveAs (const File& newFile,
+ "\n\n"
+ result.getErrorMessage());
changed(); // because the filename may have changed
sendChangeMessage(); // because the filename may have changed
return failedToWriteToFile;
}