]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
Automatically show the review toolbar if the document has tracked changes
[features.git] / src / frontends / qt4 / GuiView.cpp
index 8133ac246f7ddbf3f80a2a463964bd1ff517044f..d228ca470dbe762ddfb8aa43e309972805848fc3 100644 (file)
@@ -1552,8 +1552,9 @@ void GuiView::updateToolbars()
                        context |= Toolbars::MATH;
                if (lyx::getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).enabled())
                        context |= Toolbars::TABLE;
-               if (lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled()
-                       && lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onOff(true))
+               if (currentBufferView()->buffer().areChangesPresent()
+                   || (lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled()
+                       && lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onOff(true)))
                        context |= Toolbars::REVIEW;
                if (lyx::getStatus(FuncRequest(LFUN_IN_MATHMACROTEMPLATE)).enabled())
                        context |= Toolbars::MATHMACROTEMPLATE;