Remove (now) unnecessary update_screen_for_document() after saving process

If the sprite is locked and we cannot redraw the Editor, some defered
invalidations will be update the screen correctly.
This commit is contained in:
David Capello 2015-04-21 13:36:47 -03:00
parent b699b92a3a
commit 4e5860ce66

View File

@ -200,8 +200,6 @@ void SaveFileBaseCommand::saveAsDialog(const ContextReader& reader, const char*
else
documentWriter->incrementVersion();
}
update_screen_for_document(document);
}
//static
@ -255,7 +253,6 @@ void SaveFileCommand::onExecute(Context* context)
save_document_in_background(context, documentWriter, true,
m_filenameFormat.c_str());
update_screen_for_document(documentWriter);
}
// If the document isn't associated to a file, we must to show the
// save-as dialog to the user to select for first time the file-name
@ -312,7 +309,6 @@ void SaveFileCopyAsCommand::onExecute(Context* context)
{
ContextWriter writer(reader);
writer.document()->setFilename(old_filename.c_str());
update_screen_for_document(writer.document());
}
}