Fix unnecessary update on Save

This commit is contained in:
wandererfan
2019-03-20 12:58:05 -04:00
committed by Yorik van Havre
parent 2ba6830781
commit 8ea5b43f88
2 changed files with 1 additions and 3 deletions

View File

@@ -498,11 +498,9 @@ bool MDIViewPage::onMsg(const char *pMsg, const char **)
return true;
} else if (strcmp("Save", pMsg) == 0 ) {
doc->save();
Gui::Command::updateActive();
return true;
} else if (strcmp("SaveAs", pMsg) == 0 ) {
doc->saveAs();
Gui::Command::updateActive();
return true;
} else if (strcmp("Undo", pMsg) == 0 ) {
doc->undo(1);

View File

@@ -71,7 +71,7 @@ public:
void matchSceneRectToTemplate(void);
bool onMsg(const char* pMsg,const char** ppReturn);
bool onHasMsg(const char* pMsg) const;
bool onHasMsg(const char* pMsg) const;
void print();
void print(QPrinter* printer);