Do not save files when quitting when running with no gui.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1437 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-02-01 17:42:26 +00:00
parent a4d1dd120d
commit e6ae692c8c
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-02-01 Dekel Tsur <dekelts@tau.ac.il>
* src/lyx_cb.C (QuitLyX): Do not save files when running with no gui.
2001-02-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/version.h (LYX_VERSION): reset version to 1.1.6cvs

View File

@ -331,10 +331,12 @@ void QuitLyX()
{
lyxerr.debug() << "Running QuitLyX." << endl;
if (!bufferlist.QwriteAll())
return;
if (lyxrc.use_gui) {
if (!bufferlist.QwriteAll())
return;
lastfiles->writeFile(lyxrc.lastfiles);
lastfiles->writeFile(lyxrc.lastfiles);
}
// Set a flag that we do quitting from the program,
// so no refreshes are necessary.