fix crash on emergencyCleanup() when lyx::use_gui is false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15360 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-10-18 09:33:34 +00:00
parent 1e12ef87f5
commit c174c9ea88

View File

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