mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
If the save process fails, mark the document as modified
This commit is contained in:
parent
a04119eeb4
commit
0eb8e344bb
@ -93,6 +93,10 @@ static void save_document_in_background(Document* document, bool mark_as_saved)
|
||||
if (fop->has_error()) {
|
||||
Console console;
|
||||
console.printf(fop->error.c_str());
|
||||
|
||||
// We don't know if the file was saved correctly or not. So mark
|
||||
// it as it should be saved again.
|
||||
document->impossibleToBackToSavedState();
|
||||
}
|
||||
// If the job was cancelled, mark the document as modified.
|
||||
else if (fop_is_stop(fop)) {
|
||||
|
Loading…
Reference in New Issue
Block a user