fix focus problem with minibuffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-27 16:15:56 +00:00
parent af442b7369
commit 7e127a496b

View File

@ -18,6 +18,7 @@
#include "Dialog.h"
#include "FileDialog.h"
#include "GuiApplication.h"
#include "GuiCommandBuffer.h"
#include "GuiCompleter.h"
#include "GuiWorkArea.h"
#include "GuiKeySymbol.h"
@ -1757,8 +1758,11 @@ bool GuiView::dispatch(FuncRequest const & cmd)
bool const show_it = cmd.argument() != "off";
// FIXME: this is a hack, "minibuffer" should not be
// hardcoded.
if (GuiToolbar * t = toolbar("minibuffer"))
if (GuiToolbar * t = toolbar("minibuffer")) {
t->setVisible(show_it);
LASSERT(t->commandBuffer(), break);
t->commandBuffer()->setFocus();
}
break;
}
case LFUN_DROP_LAYOUTS_CHOICE: