X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d38eb01c91f5d84236a881c71c78ae0e3b06fb17..82b30473f935d7ffe21a165aa8ef63e16599c3fc:/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);