From: Abdelrazak Younes Date: Tue, 12 Feb 2008 15:44:45 +0000 (+0000) Subject: * GuiView::event(): ensure current workarea has the focus on window activation. This... X-Git-Tag: 1.6.10~6303 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0aa490a70587545847d5fca7cd11396e3651ec5c;p=features.git * GuiView::event(): ensure current workarea has the focus on window activation. This prevents document jumps when the outline panel previously had the focus. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22964 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 31cbd68357..7e7439573e 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -584,6 +584,7 @@ bool GuiView::event(QEvent * e) setWindowTitle(qt_("LyX")); setWindowIconText(qt_("LyX")); } + setFocus(); return QMainWindow::event(e); }