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,6 +756,7 @@ void LyX::emergencyCleanup() const
// a crash // a crash
buffer_list_->emergencyWriteAll(); buffer_list_->emergencyWriteAll();
if (lyx::use_gui)
application_->server().emergencyCleanup(); application_->server().emergencyCleanup();
} }