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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1436 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-02-01 17:37:09 +00:00
parent a0e6ddd7f4
commit 4467a45110
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-02-01 Dekel Tsur <dekelts@tau.ac.il>
* lyx_cb.C (QuitLyX): Do not save files when running with no gui.
2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
* BufferView2.C (ChangeInsets): Renamed from ChangeRefs. Accept a

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.