From 1a836459fbc492c031a3b3761b7b0a765ca0754a Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Thu, 5 May 2016 22:01:19 +0100 Subject: [PATCH] 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. --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index d228ca470d..6bfcdcb032 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; -- 2.39.5