]> git.saurik.com Git - wxWidgets.git/commit
Update wxCommandProcessor after saving wxDocument.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jan 2012 00:05:15 +0000 (00:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jan 2012 00:05:15 +0000 (00:05 +0000)
commit8c85eb7b47b30a169988406c1da2e473340f5b18
tree6b5049be8cea786ab1e84f0caad1dbc3e6cf6ceb
parent812a21486dea91fc81edce69655d28fc1fdff2c3
Update wxCommandProcessor after saving wxDocument.

Surprisingly, wxCommandProcessor::MarkAsSaved() method was never called by
wxDocument so saving the document didn't update wxCommandProcessor dirty
status.

Do add a call to MarkAsSaved() now, this allows wxCommandProcessor to track
its status correctly (and actually more correctly than the dirty status of the
document which becomes "dirty" after doing and undoing an operation after
saving it, unlike wxCommandProcessor::IsDirty() which correctly returns false
in this case).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/docview.cpp