]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction:...
authornds <nds@opencascade.com>
Mon, 4 Apr 2016 05:35:19 +0000 (08:35 +0300)
committerdbv <dbv@opencascade.com>
Wed, 6 Apr 2016 10:25:17 +0000 (13:25 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index e1b8584766d9865eb70e67d9ee6c6de6354c2363..9342ae43750e9de96091a7c9755c0af707d70024 100644 (file)
@@ -218,7 +218,7 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu()
           action("MOVE_CMD")->setEnabled(true);
 
         else if (hasFeature || hasParameter)
-          action("CLEAN_HISTORY_CMD")->setEnabled(true);
+          action("CLEAN_HISTORY_CMD")->setEnabled(!hasSubFeature);
 
         if( aMgr->activeDocument() == aObject->document() )
         {
@@ -246,7 +246,7 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu()
       if (hasFeature || hasParameter)
         action("DELETE_CMD")->setEnabled(true);
     }
-    if (allActive && (hasFeature|| hasParameter))
+    if (!hasSubFeature && allActive && (hasFeature|| hasParameter))
       action("CLEAN_HISTORY_CMD")->setEnabled(true);
   }