bug fix with minibuffer focus.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-27 17:29:36 +00:00
parent 43c7e56ef2
commit 891cfdda68

View 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;
}