From 0aa490a70587545847d5fca7cd11396e3651ec5c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 12 Feb 2008 15:44:45 +0000 Subject: [PATCH] * 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 --- src/frontends/qt4/GuiView.cpp | 1 + 1 file changed, 1 insertion(+) 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); }