mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Made FileBasedDocument send change messages when its filename changes when saved.
This commit is contained in:
parent
4a951f2136
commit
83fcea3dbe
1 changed files with 2 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ FileBasedDocument::SaveResult FileBasedDocument::saveAs (const File& newFile,
|
|||
setChangedFlag (false);
|
||||
MouseCursor::hideWaitCursor();
|
||||
|
||||
changed(); // because the filename may have changed
|
||||
return savedOk;
|
||||
}
|
||||
|
||||
|
|
@ -184,6 +185,7 @@ FileBasedDocument::SaveResult FileBasedDocument::saveAs (const File& newFile,
|
|||
+ "\n\n"
|
||||
+ result.getErrorMessage());
|
||||
|
||||
changed(); // because the filename may have changed
|
||||
return failedToWriteToFile;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue