]> git.lyx.org Git - features.git/commitdiff
No more auto math toolbars while in regexp mode (addressing #6471).
authorTommaso Cucinotta <tommaso@lyx.org>
Wed, 17 Mar 2010 13:37:15 +0000 (13:37 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Wed, 17 Mar 2010 13:37:15 +0000 (13:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33787 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index c32cd00eeb716f0cebedc5d25e7a85d0cb4a04cf..09dae407ac8c7703238b739df935046f0727053c 100644 (file)
@@ -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 =