From: vsv Date: Mon, 18 May 2015 12:15:15 +0000 (+0300) Subject: Avoid crash on module deactivation in SALOME X-Git-Tag: V_1.2.0~149 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f51103c5ac22fb905902242e52598faf6b76e5c;p=modules%2Fshaper.git Avoid crash on module deactivation in SALOME --- diff --git a/src/Model/Model_Session.cpp b/src/Model/Model_Session.cpp index 921e964cb..9a41142ae 100644 --- a/src/Model/Model_Session.cpp +++ b/src/Model/Model_Session.cpp @@ -48,8 +48,8 @@ bool Model_Session::save(const char* theFileName, std::list& theRes void Model_Session::closeAll() { - ROOT_DOC->close(true); Model_Application::getApplication()->deleteAllDocuments(); + ROOT_DOC->close(true); } void Model_Session::startOperation(const std::string& theId)