X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.cpp;h=e1b8584766d9865eb70e67d9ee6c6de6354c2363;hb=220bd2b37119be1c65abf88a88792445cb9d99f8;hp=648abd6cc7ebe1435ce65bf49e46ae7effc68bab;hpb=9700ee4c209cbe95d880913867a093a0a3969cf0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 648abd6cc..e1b858476 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -71,7 +71,7 @@ void XGUI_ContextMenuMgr::createActions() aAction = new QAction(QIcon(":pictures/move.png"), XGUI_Workshop::MOVE_TO_END_COMMAND, this); addAction("MOVE_CMD", aAction); - aAction = new QAction(QIcon(":pictures/delete.png"), tr("Clean history"), this); + aAction = new QAction(QIcon(":pictures/clean_history.png"), tr("Clean history"), this); addAction("CLEAN_HISTORY_CMD", aAction); aAction = new QAction(QIcon(":pictures/color.png"), tr("Color..."), this); @@ -217,7 +217,7 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu() else if (hasFeature && myWorkshop->canMoveFeature()) action("MOVE_CMD")->setEnabled(true); - else if (hasFeature) + else if (hasFeature || hasParameter) action("CLEAN_HISTORY_CMD")->setEnabled(true); if( aMgr->activeDocument() == aObject->document() ) @@ -246,7 +246,7 @@ void XGUI_ContextMenuMgr::updateObjectBrowserMenu() if (hasFeature || hasParameter) action("DELETE_CMD")->setEnabled(true); } - if (allActive && hasFeature) + if (allActive && (hasFeature|| hasParameter)) action("CLEAN_HISTORY_CMD")->setEnabled(true); } @@ -384,6 +384,7 @@ void XGUI_ContextMenuMgr::buildObjBrowserMenu() aList.clear(); aList.append(action("DELETE_CMD")); + aList.append(action("CLEAN_HISTORY_CMD")); aList.append(mySeparator); aList.append(action("RENAME_CMD")); myObjBrowserMenus[ModelAPI_ResultParameter::group()] = aList;