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:
parent
d7812ff580
commit
d46ea331da
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue