]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #590 Setting random colors to bodies. "Color" popup menu action available in...
authornds <nds@opencascade.com>
Mon, 5 Oct 2015 07:01:00 +0000 (10:01 +0300)
committernds <nds@opencascade.com>
Mon, 5 Oct 2015 07:01:00 +0000 (10:01 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index 494d80002450f719c987419c3b6d4a81ca2d32b5..c65481a0879e1cc85c89837a6d71c4cba9873445 100644 (file)
@@ -439,8 +439,10 @@ void XGUI_ContextMenuMgr::addViewerMenu(QMenu* theMenu) const
     std::string aName = aObject->groupName();
     if (myViewerMenu.contains(aName))
       aActions = myViewerMenu[aName];
+    aActions.append(action("COLOR_CMD"));
   } else if (aSelected > 1) {
     aActions.append(action("HIDE_CMD"));
+    aActions.append(action("COLOR_CMD"));
   }
   theMenu->addActions(aActions);