]> git.lyx.org Git - features.git/commitdiff
Clear the LastOpened list when choosing "Close Window".
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:29:16 +0000 (20:29 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:29:16 +0000 (20:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31148 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index dfb06a39c0b97b2308845f04b0b4433dd6b25c5d..84bb34cd3d2bbc7f8a89ac09bc5b160aed2eb401 100644 (file)
@@ -843,6 +843,9 @@ bool GuiApplication::dispatch(FuncRequest const & cmd)
                // update bookmark pit of the current buffer before window close
                for (size_t i = 0; i < theSession().bookmarks().size(); ++i)
                        theLyXFunc().gotoBookmark(i+1, false, false);
+               // clear the last opened list, because
+               // maybe this will end the session
+               theSession().lastOpened().clear();
                current_view_->close();
                break;