From: Abdelrazak Younes Date: Tue, 27 May 2008 16:15:56 +0000 (+0000) Subject: fix focus problem with minibuffer. X-Git-Tag: 1.6.10~4654 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7e127a496b6f25ef657c638bc2768605d2621e9a;p=features.git fix focus problem with minibuffer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 620fd19895..852a4707af 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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: