]> git.lyx.org Git - features.git/commitdiff
potential bug fix, reported by Richard:
authorAbdelrazak Younes <younes@lyx.org>
Fri, 3 Oct 2008 07:38:51 +0000 (07:38 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 3 Oct 2008 07:38:51 +0000 (07:38 +0000)
Open LyX. Open a new window. Open a new window. Close the first. Close the second.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26689 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 8b595ae17388bd8cc01d322c1d6a102efc5d6e1d..09880cec32fc9509593a5666b1960c18d2d1423a 100644 (file)
@@ -518,6 +518,7 @@ void GuiView::closeEvent(QCloseEvent * close_event)
        // 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()) {