]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2809: Add "Show only" menu item for multi-selection in a viewer
authorvsv <vsv@opencascade.com>
Wed, 9 Jan 2019 15:23:21 +0000 (18:23 +0300)
committervsv <vsv@opencascade.com>
Wed, 9 Jan 2019 15:23:45 +0000 (18:23 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index 87c91f9753ec01b48737e0a66f23e9cdd044b48b..814a2a0e58290aab8601825ee72e76f9d153eed0 100644 (file)
@@ -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