]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
* remove various xforms relicts, in particular:
[lyx.git] / src / bufferlist.C
index e51779103b58657d4dfc2603d78a108140c6a78a..c86abdc837bf1af76fa2b204cf7b715d9ce11498 100644 (file)
@@ -122,6 +122,15 @@ bool BufferList::quitWriteAll()
                if (!quitWriteBuffer(*it))
                        return false;
        }
+       // now, all buffers have been written sucessfully
+       // save file names to .lyx/session
+       it = bstore.begin();
+       for (; it != end; ++it) {
+               // if master/slave are both open, do not save slave since it 
+               // will be automatically loaded when the master is loaded
+               if ((*it)->getMasterBuffer() == (*it))
+                       LyX::ref().session().addLastOpenedFile((*it)->fileName());
+       }
 
        return true;
 }