X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_ContextMenuMgr.cpp;h=00cf24153ffbe8d7edd5e460e3d74bbe0ab5b0de;hb=8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e;hp=a24747d5c4666845fc25f8315126c3e5f5fd2558;hpb=4c74e5b864eef28128e27b3ece944990ca8f3fbe;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index a24747d5c..00cf24153 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -347,6 +347,8 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu() action("SHADING_CMD")->setEnabled(true); action("WIREFRAME_CMD")->setEnabled(true); } + if (hasFeature && myWorkshop->canMoveFeature()) + action("MOVE_CMD")->setEnabled(true); } // end multi-selection // Check folder management commands state if only features are selected @@ -506,6 +508,8 @@ void XGUI_ContextMenuMgr::updateViewerMenu() ObjectPtr aObject; foreach(ModuleBase_ViewerPrsPtr aPrs, aPrsList) { aObject = aPrs->object(); + if (!aObject.get()) + continue; GeomShapePtr aShape = aPrs->shape(); if (aObject->isDisplayed()) { isVisible = true; @@ -765,7 +769,7 @@ void XGUI_ContextMenuMgr::addObjBrowserMenu(QMenu* theMenu) const aActions.append(action("ADD_OUT_FOLDER_BEFORE_CMD")); aActions.append(action("ADD_OUT_FOLDER_AFTER_CMD")); aActions.append(mySeparator3); - //aActions.append(action("MOVE_CMD")); + aActions.append(action("MOVE_CMD")); aActions.append(action("COLOR_CMD")); aActions.append(action("DEFLECTION_CMD")); aActions.append(action("TRANSPARENCY_CMD"));