From e74f4b1d8b5be59c8ff2cef1129885b0023b0714 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Wed, 17 Mar 2010 13:37:15 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = -- 2.39.5