branch: Fix bug #5458: File reopens at LyX-start even though it was closed in previous session.

see r29596.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30513 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-07-12 16:01:38 +00:00
parent 51521e44ab
commit 25aa3d4022
2 changed files with 7 additions and 0 deletions

View File

@ -1394,6 +1394,10 @@ bool GuiApplication::closeAllViews()
if (d->views_.empty())
return true;
// When a view/window was closed before without quitting LyX, there
// are already entries in the lastOpened list.
theSession().lastOpened().clear();
QList<GuiView *> views = d->views_.values();
foreach (GuiView * view, views) {
if (!view->close())

View File

@ -208,6 +208,9 @@ What's new
- Make it possible to copy from a deleted section (bug 5390).
- Do not open files during startup that were closed in the previous
session by Close View or Close Window (bug 5458).
* DOCUMENTATION AND LOCALIZATION