]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Several opens of different and same documents crash fix
authormpv <mpv@opencascade.com>
Tue, 26 May 2015 09:54:08 +0000 (12:54 +0300)
committermpv <mpv@opencascade.com>
Tue, 26 May 2015 09:54:08 +0000 (12:54 +0300)
src/Model/Model_Application.cpp

index 4a77ae9ef42f7afc79e077acbe72349aacfef8a9..4dddb449daf686c24185616677b8f45a6df6bed1 100644 (file)
@@ -64,7 +64,7 @@ void Model_Application::deleteAllDocuments()
 {
   std::map<std::string, std::shared_ptr<Model_Document> >::iterator aDoc = myDocs.begin();
   for(; aDoc != myDocs.end(); aDoc++) {
-    aDoc->second->close();
+    aDoc->second->close(true);
   }
   myDocs.clear();
   myLoadedByDemand.clear();