]> git.lyx.org Git - features.git/commitdiff
fix crash on emergencyCleanup() when lyx::use_gui is false.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 18 Oct 2006 09:33:34 +0000 (09:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 18 Oct 2006 09:33:34 +0000 (09:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15360 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyx_main.C

index 56bb85136d0d901c73daa3738bd3dd6036b87c75..a9342a777c30aebce9bb7aa35c616c2638b9632f 100644 (file)
@@ -756,7 +756,8 @@ void LyX::emergencyCleanup() const
        // a crash
 
        buffer_list_->emergencyWriteAll();
-       application_->server().emergencyCleanup();
+       if (lyx::use_gui)
+               application_->server().emergencyCleanup();
 }