From b999de7aefea294bbca115136834e740d3ad58fc Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 10 Jul 2015 15:23:07 +0300 Subject: [PATCH] Issue #754: Correct pop-up of Part Result --- src/XGUI/XGUI_ContextMenuMgr.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index fa76cfa4d..81e6fe2b8 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -181,11 +181,6 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu() action("SHOW_CMD")->setEnabled(true); } - ResultPartPtr aPartRes = std::dynamic_pointer_cast(aObject); - if (aPartRes) { - action("SHOW_CMD")->setEnabled(true); - } - if (!(hasParameter || hasFeature)) action("SHOW_ONLY_CMD")->setEnabled(true); } @@ -275,8 +270,6 @@ void XGUI_ContextMenuMgr::buildObjBrowserMenu() aList.append(action("SHOW_ONLY_CMD")); aList.append(action("COLOR_CMD")); myObjBrowserMenus[ModelAPI_ResultConstruction::group()] = aList; - // Result part menu - myObjBrowserMenus[ModelAPI_ResultPart::group()] = aList; //------------------------------------- // Result body menu aList.clear(); @@ -290,6 +283,8 @@ void XGUI_ContextMenuMgr::buildObjBrowserMenu() myObjBrowserMenus[ModelAPI_ResultBody::group()] = aList; // Group menu myObjBrowserMenus[ModelAPI_ResultGroup::group()] = aList; + // Result part menu + myObjBrowserMenus[ModelAPI_ResultPart::group()] = aList; //------------------------------------- // Feature menu aList.clear(); -- 2.39.2