commit 1a836459fbc492c031a3b3761b7b0a765ca0754a
Author: Guillaume Munch <[email protected]>
Date:   Thu May 5 22:01:19 2016 +0100

    Show review toolbar when outputting changes
    
    "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.

diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index d228ca4..6bfcdcb 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -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;

Reply via email to