]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Color item in the popup menu goes after the "Hide all" menu item.
authornds <natalia.donis@opencascade.com>
Wed, 8 Apr 2015 05:11:50 +0000 (08:11 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 8 Apr 2015 05:11:50 +0000 (08:11 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index 91d5c2f7cc99c9831aea1cf8e7e85844c6e57d5a..1051298f4b9bdb2765a919e517b7fa117f29a790 100644 (file)
@@ -265,10 +265,10 @@ void XGUI_ContextMenuMgr::addViewerItems(QMenu* theMenu) const
         theMenu->addAction(action("SHOW_CMD"));
       //theMenu->addAction(action("DELETE_CMD"));
     }
-    if (myWorkshop->canChangeColor())
-      theMenu->addAction(action("COLOR_CMD"));
     if (myWorkshop->displayer()->objectsCount() > 0)
       theMenu->addAction(action("HIDEALL_CMD"));
+    if (myWorkshop->canChangeColor())
+      theMenu->addAction(action("COLOR_CMD"));
   }
   if (!myWorkshop->isSalomeMode()) {
     theMenu->addSeparator();