X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..6ea6639cdfa9f735ea3e3b4115f15f7afd6515eb:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index e4f6bf3bdb..eba884d600 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -397,6 +397,9 @@ bool wxDocument::OnSaveDocument(const wxString& file) if ( !DoSaveDocument(file) ) return false; + if ( m_commandProcessor ) + m_commandProcessor->MarkAsSaved(); + Modify(false); SetFilename(file); SetDocumentSaved(true);