We should of course clear the list before closing each of the views. Otherwise, the second view will remove the files from the first view from the list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29596
a592a061-630c-0410-9148-
cb99ea01b6c8
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())
GuiWorkArea * active_wa = currentMainWorkArea();
setCurrentWorkArea(active_wa);
- // When a view/window was closed before without quitting LyX, there
- // are already entries in the lastOpened list.
- theSession().lastOpened().clear();
-
int splitter_count = d.splitter_->count();
for (; splitter_count; --splitter_count) {
TabWorkArea * twa = d.tabWorkArea(0);