On 02/10/2008 17:40, rgheck wrote:
Open LyX. Open a new window. Open a new window. Close the first. Close
the second.
Is it better now?
If yes, I guess windows automatically gives the focus to the closing
window while X11 doesn't.
Abdel.
Author: younes
Date: Fri Oct 3 09:38:51 2008
New Revision: 26689
URL:http://www.lyx.org/trac/changeset/26689
Log:
potential bug fix, reported by Richard:
Open LyX. Open a new window. Open a new window. Close the first. Close the
second.
Modified:
lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
URL:http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.cpp?rev=26689
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp Fri Oct 3 09:38:51 2008
@@ -518,6 +518,7 @@
// it can happen that this event arrives without selecting the view,
// e.g. when clicking the close button on a background window.
theLyXFunc().setLyXView(this);
+ guiApp->setCurrentView(this);
while (Buffer * b = buffer()) {
if (b->parent()) {