]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1928
authormpv <mpv@opencascade.com>
Thu, 15 Dec 2016 05:39:53 +0000 (08:39 +0300)
committermpv <mpv@opencascade.com>
Thu, 15 Dec 2016 05:39:53 +0000 (08:39 +0300)
src/Model/Model_Session.cpp

index 4c98ca45008c8c01e0067c8276b54a6887102409..5bb981ea3b907559f97d3f920e5dbec30fde4a5d 100644 (file)
@@ -422,7 +422,8 @@ void Model_Session::processEvent(const std::shared_ptr<Events_Message>& theMessa
           }
         }
         if (!aFound) { // if not, the part was removed, so activate the module document
-          setActiveDocument(moduleDocument());
+          if (myCurrentDoc.get())
+            setActiveDocument(moduleDocument());
         }
       }
     }