X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_MenuMgr.cpp;h=cb004a243089402ed2eec83c880ef68c8f3f981d;hb=603561c4589b1938525c51f9ceab8576cf8b5367;hp=8a6fce040eea66438bf3e15a06400e3e6f1acc27;hpb=55721f7e81cd960ce315296b8fdf97489284933f;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_MenuMgr.cpp b/src/XGUI/XGUI_MenuMgr.cpp index 8a6fce040..cb004a243 100644 --- a/src/XGUI/XGUI_MenuMgr.cpp +++ b/src/XGUI/XGUI_MenuMgr.cpp @@ -40,6 +40,7 @@ #endif #include +#include #include #include @@ -74,15 +75,16 @@ void XGUI_MenuMgr::addFeature(const std::shared_ptr& theM #endif return; } + QString aWchName = ModuleBase_Tools::translate("workshop", theMessage->workbenchId()); #ifdef HAVE_SALOME - std::shared_ptr aWorkbench = findWorkbench(theMessage->workbenchId()); + std::string aWchNameString = aWchName.toStdString(); + std::shared_ptr aWorkbench = findWorkbench(aWchNameString); std::shared_ptr aGroup = aWorkbench->findGroup(theMessage->groupId()); aGroup->setFeatureInfo(theMessage); #else ActionInfo aFeatureInfo; aFeatureInfo.initFrom(theMessage); - QString aWchName = QString::fromStdString(theMessage->workbenchId()); QStringList aNestedFeatures = QString::fromStdString(theMessage->nestedFeatures()).split(" ", QString::SkipEmptyParts); QList aNestedActList;