From: Guillaume Munch Date: Thu, 5 May 2016 21:01:19 +0000 (+0100) Subject: Show review toolbar when outputting changes X-Git-Tag: 2.2.1~126 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=108cb35b64d927b1ad4d50fec1f66071b181efcf;p=features.git 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 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;