]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
Clear the LastOpened list when choosing "Close Window".
[features.git] / 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;