From: vsv Date: Wed, 9 Jan 2019 15:23:21 +0000 (+0300) Subject: Issue #2809: Add "Show only" menu item for multi-selection in a viewer X-Git-Tag: Jan2019~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7faeb6dfb93de3f3c7122a0b415995c974846777;p=modules%2Fshaper.git Issue #2809: Add "Show only" menu item for multi-selection in a viewer --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 87c91f975..814a2a0e5 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -803,6 +803,7 @@ void XGUI_ContextMenuMgr::addViewerMenu(QMenu* theMenu) const aActions = myViewerMenu[aName]; } } else if (aSelected > 1) { + aActions.append(action("SHOW_ONLY_CMD")); aActions.append(action("HIDE_CMD")); } // hide all is shown always even if selection in the viewer is empty