]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1120
authormpv <mpv@opencascade.com>
Wed, 16 Dec 2015 08:14:28 +0000 (11:14 +0300)
committermpv <mpv@opencascade.com>
Wed, 16 Dec 2015 08:14:28 +0000 (11:14 +0300)
src/Model/Model_Document.cpp

index d96069a65fcac2111fd5972d2958e98be9d859ac..c38a70f539def2dbfc863e351739a696681ce0b8 100755 (executable)
@@ -295,6 +295,10 @@ void Model_Document::close(const bool theForever)
     mySelectionFeature.reset();
   } else {
     setCurrentFeature(FeaturePtr(), false); // disables all features
+    // update the OB: features are disabled (on remove of Part)
+    Events_Loop* aLoop = Events_Loop::loop();
+    static Events_ID aDeleteEvent = Events_Loop::eventByName(EVENT_OBJECT_DELETED);
+    aLoop->flush(aDeleteEvent);
   }
 
   std::static_pointer_cast<Model_Session>(Model_Session::get())->setCheckTransactions(true);