From: Tommaso Cucinotta Date: Wed, 17 Mar 2010 13:37:15 +0000 (+0000) Subject: No more auto math toolbars while in regexp mode (addressing #6471). X-Git-Tag: 2.0.0~3772 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e74f4b1d8b5be59c8ff2cef1129885b0023b0714;p=features.git No more auto math toolbars while in regexp mode (addressing #6471). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33787 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c32cd00eeb..09dae407ac 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1176,7 +1176,8 @@ void GuiView::updateToolbars() ToolbarMap::iterator end = d.toolbars_.end(); if (d.current_work_area_) { bool const math = - d.current_work_area_->bufferView().cursor().inMathed(); + d.current_work_area_->bufferView().cursor().inMathed() + && !d.current_work_area_->bufferView().cursor().inRegexped(); bool const table = lyx::getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).enabled(); bool const review =