Gui: minor adjustment on command status update

This commit is contained in:
Zheng, Lei
2019-09-04 16:58:03 +08:00
committed by wmayer
parent b69a31c5b5
commit f55b4ca7f7
4 changed files with 10 additions and 2 deletions

View File

@@ -1001,7 +1001,6 @@ void MainWindow::setActiveWindow(MDIView* view)
onSetActiveSubWindow(view->parentWidget());
d->activeView = view;
Application::Instance->viewActivated(view);
updateActions();
}
void MainWindow::onWindowActivated(QMdiSubWindow* w)
@@ -1025,7 +1024,6 @@ void MainWindow::onWindowActivated(QMdiSubWindow* w)
// set active the appropriate window (it needs not to be part of mdiIds, e.g. directly after creation)
d->activeView = view;
Application::Instance->viewActivated(view);
updateActions();
}
void MainWindow::onWindowsMenuAboutToShow()