From 7faeb6dfb93de3f3c7122a0b415995c974846777 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 9 Jan 2019 18:23:21 +0300 Subject: [PATCH] Issue #2809: Add "Show only" menu item for multi-selection in a viewer --- src/XGUI/XGUI_ContextMenuMgr.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2