From 891cfdda68b01179b52862d14e744b026f4c819f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 27 May 2008 17:29:36 +0000 Subject: [PATCH] bug fix with minibuffer focus. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 852a4707af..565a4fcf75 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; } -- 2.39.2