From e6ae692c8c4b3bc0851f9e555b6840e32c32553d Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Thu, 1 Feb 2001 17:42:26 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ src/lyx_cb.C | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b0cef0dcb7..5e6412b347 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-02-01 Dekel Tsur + + * src/lyx_cb.C (QuitLyX): Do not save files when running with no gui. + 2001-02-01 Jean-Marc Lasgouttes * src/version.h (LYX_VERSION): reset version to 1.1.6cvs diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 5509d936bf..995e6cdb20 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -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.