]> git.lyx.org Git - lyx.git/commitdiff
Show review toolbar when outputting changes
authorGuillaume Munch <gm@lyx.org>
Thu, 5 May 2016 21:01:19 +0000 (22:01 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:43 +0000 (17:55 -0400)
"Output changes" alters the preamble even in the absence of tracked
changes. Therefore, not being able to notice when it is activated can possibly
yield hard-to-debug compilation failures.

src/frontends/qt4/GuiView.cpp

index d228ca470dbe762ddfb8aa43e309972805848fc3..6bfcdcb0328a76c78c783a498c3c9cbe89d90137 100644 (file)
@@ -1554,7 +1554,9 @@ void GuiView::updateToolbars()
                        context |= Toolbars::TABLE;
                if (currentBufferView()->buffer().areChangesPresent()
                    || (lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled()
-                       && lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onOff(true)))
+                       && lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onOff(true))
+                   || (lyx::getStatus(FuncRequest(LFUN_CHANGES_OUTPUT)).enabled()
+                       && lyx::getStatus(FuncRequest(LFUN_CHANGES_OUTPUT)).onOff(true)))
                        context |= Toolbars::REVIEW;
                if (lyx::getStatus(FuncRequest(LFUN_IN_MATHMACROTEMPLATE)).enabled())
                        context |= Toolbars::MATHMACROTEMPLATE;