From: vsv Date: Fri, 10 Jul 2015 12:23:07 +0000 (+0300) Subject: Issue #754: Correct pop-up of Part Result X-Git-Tag: V_1.3.0~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b999de7aefea294bbca115136834e740d3ad58fc;p=modules%2Fshaper.git Issue #754: Correct pop-up of Part Result --- 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();