From 682e9501b8c4b6142f061c8c0f4114c27bd1753d Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 1 Dec 2015 16:38:52 +0300 Subject: [PATCH] #1106 Hide All in viewer when nothing is selected --- 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 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 -- 2.39.2