From: nds Date: Mon, 21 Dec 2015 10:33:25 +0000 (+0300) Subject: #1141 Part is not deleted X-Git-Tag: V_2.1.0~130 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4829abf1c9ab4d6f03c1442a817e2a8fbf0991fd;p=modules%2Fshaper.git #1141 Part is not deleted --- diff --git a/src/PartSet/PartSet_MenuMgr.cpp b/src/PartSet/PartSet_MenuMgr.cpp index d2a2f4efe..f39331b62 100644 --- a/src/PartSet/PartSet_MenuMgr.cpp +++ b/src/PartSet/PartSet_MenuMgr.cpp @@ -447,6 +447,7 @@ void PartSet_MenuMgr::onActivatePart(bool) } if (aPart.get()) aPart->activate(); + myModule->workshop()->updateCommandStatus(); } } @@ -465,6 +466,8 @@ void PartSet_MenuMgr::activatePartSet() const if (isNewTransaction) aMgr->startOperation("Activation"); aMgr->setActiveDocument(aMgr->moduleDocument()); if (isNewTransaction) aMgr->finishOperation(); + + myModule->workshop()->updateCommandStatus(); } void PartSet_MenuMgr::grantedOperationIds(ModuleBase_Operation* theOperation,