From e06a889d5d1965063bdca37d6a447a906b623ae8 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 4 Apr 2016 08:35:19 +0300 Subject: [PATCH] Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction: Clean History, as Delete, should be disabled on Sketch created under an Extrusion. --- src/XGUI/XGUI_ContextMenuMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2