From: nds Date: Tue, 1 Dec 2015 13:38:52 +0000 (+0300) Subject: #1106 Hide All in viewer when nothing is selected X-Git-Tag: V_2.1.0~225 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=682e9501b8c4b6142f061c8c0f4114c27bd1753d;p=modules%2Fshaper.git #1106 Hide All in viewer when nothing is selected --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 0327796b4..57c622ac3 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -388,7 +388,6 @@ void XGUI_ContextMenuMgr::buildViewerMenu() // Result construction menu aList.append(action("HIDE_CMD")); aList.append(action("SHOW_ONLY_CMD")); - aList.append(action("HIDEALL_CMD")); aList.append(action("COLOR_CMD")); myViewerMenu[ModelAPI_ResultConstruction::group()] = aList; // Result part menu @@ -402,7 +401,6 @@ void XGUI_ContextMenuMgr::buildViewerMenu() aList.append(mySeparator); aList.append(action("HIDE_CMD")); aList.append(action("SHOW_ONLY_CMD")); - aList.append(action("HIDEALL_CMD")); myViewerMenu[ModelAPI_ResultBody::group()] = aList; // Group menu myViewerMenu[ModelAPI_ResultGroup::group()] = aList; @@ -466,6 +464,8 @@ void XGUI_ContextMenuMgr::addViewerMenu(QMenu* theMenu) const aActions.append(action("HIDE_CMD")); aActions.append(action("COLOR_CMD")); } + // hide all is shown always even if selection in the viewer is empty + aActions.append(action("HIDEALL_CMD")); theMenu->addActions(aActions); #ifndef HAVE_SALOME