]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid crash on module deactivation in SALOME
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 12:15:15 +0000 (15:15 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 12:15:15 +0000 (15:15 +0300)
src/Model/Model_Session.cpp

index 921e964cb87be0d1a8d9abf15c2f53c9276378c6..9a41142ae33456e36900f2c3fc7f4087e0bb0193 100644 (file)
@@ -48,8 +48,8 @@ bool Model_Session::save(const char* theFileName, std::list<std::string>& 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)