From: nds Date: Mon, 4 Apr 2016 05:35:19 +0000 (+0300) Subject: Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction:... X-Git-Tag: V_2.3.0~310 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ea3bacb266878bba49115c09a4bc7ca204c2e62f;p=modules%2Fshaper.git Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction: Clean History, as Delete, should be disabled on Sketch created under an Extrusion. --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index e1b858476..9342ae437 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -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); }