From a85dbf987b4d709b9198aefc2c356d0e839791b3 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 8 Apr 2015 08:11:50 +0300 Subject: [PATCH] Color item in the popup menu goes after the "Hide all" menu item. --- src/XGUI/XGUI_ContextMenuMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2