]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1141 Part is not deleted
authornds <nds@opencascade.com>
Mon, 21 Dec 2015 10:33:25 +0000 (13:33 +0300)
committernds <nds@opencascade.com>
Mon, 21 Dec 2015 10:34:14 +0000 (13:34 +0300)
src/PartSet/PartSet_MenuMgr.cpp

index d2a2f4efec3e7a80509ad230b6df387ae52fbaca..f39331b6270ec89594ad50fb38349e03c71d8cbc 100644 (file)
@@ -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,