From 9c44cc7360bbd0218e51b7c56ac5304717591298 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 19 Aug 2009 20:29:16 +0000 Subject: [PATCH] Clear the LastOpened list when choosing "Close Window". git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31148 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index dfb06a39c0..84bb34cd3d 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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; -- 2.39.2