From: Vincent van Ravesteijn Date: Wed, 19 Aug 2009 20:29:16 +0000 (+0000) Subject: Clear the LastOpened list when choosing "Close Window". X-Git-Tag: 2.0.0~5644 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9c44cc7360bbd0218e51b7c56ac5304717591298;p=features.git 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 --- 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;