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.
This commit is contained in:
Guillaume Munch 2016-05-05 22:01:19 +01:00
parent bc40386a6e
commit 1a836459fb

View File

@ -1554,7 +1554,9 @@ void GuiView::updateToolbars()
context |= Toolbars::TABLE; context |= Toolbars::TABLE;
if (currentBufferView()->buffer().areChangesPresent() if (currentBufferView()->buffer().areChangesPresent()
|| (lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled() || (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; context |= Toolbars::REVIEW;
if (lyx::getStatus(FuncRequest(LFUN_IN_MATHMACROTEMPLATE)).enabled()) if (lyx::getStatus(FuncRequest(LFUN_IN_MATHMACROTEMPLATE)).enabled())
context |= Toolbars::MATHMACROTEMPLATE; context |= Toolbars::MATHMACROTEMPLATE;