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

@@ -958,6 +958,9 @@ void Application::setActiveDocument(Gui::Document* pcDocument)
{
if (d->activeDocument == pcDocument)
return; // nothing needs to be done
getMainWindow()->updateActions();
if (pcDocument) {
// This happens if a document with more than one view is about being
// closed and a second view is activated. The document is still not