From: mpv Date: Wed, 16 Dec 2015 08:14:28 +0000 (+0300) Subject: Fix for the issue #1120 X-Git-Tag: V_2.1.0~175 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e81674d532bbac7114779fabaa07dee35a8fe38;p=modules%2Fshaper.git Fix for the issue #1120 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index d96069a65..c38a70f53 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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::get())->setCheckTransactions(true);