From: nds Date: Wed, 8 Apr 2015 05:11:50 +0000 (+0300) Subject: Color item in the popup menu goes after the "Hide all" menu item. X-Git-Tag: V_1.1.0~54^2~7^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a85dbf987b4d709b9198aefc2c356d0e839791b3;p=modules%2Fshaper.git Color item in the popup menu goes after the "Hide all" menu item. --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 91d5c2f7c..1051298f4 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -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();