]> git.lyx.org Git - features.git/commitdiff
bug fix with minibuffer focus.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 17:29:36 +0000 (17:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 17:29:36 +0000 (17:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 852a4707afa80045d77606add600a3a369c1964f..565a4fcf75dfc60dc9ce5c81738ffd17d75328c5 100644 (file)
@@ -1760,8 +1760,8 @@ bool GuiView::dispatch(FuncRequest const & cmd)
                        // hardcoded.
                        if (GuiToolbar * t = toolbar("minibuffer")) {
                                t->setVisible(show_it);
-                               LASSERT(t->commandBuffer(), break);
-                               t->commandBuffer()->setFocus();
+                               if (show_it && t->commandBuffer())
+                                       t->commandBuffer()->setFocus();
                        }
                        break;
                }