#include "XGUI_Command.h"
#include "XGUI_Workshop.h"
#include "XGUI_OperationMgr.h"
+#include "XGUI_SalomeConnector.h"
#include <ModuleBase_Operation.h>
XGUI_Command* aXCmd = dynamic_cast<XGUI_Command*>(theCmd);
if (aXCmd) {
myNestedActions[aId] = aXCmd->nestedCommands();
+ } else {
+ XGUI_Workshop* aWorkshop = static_cast<XGUI_Workshop*>(parent());
+ myNestedActions[aId] = aWorkshop->salomeConnector()->nestedActions(aId);
}
}
QString::fromStdString(theMessage->tooltip()),
QIcon(theMessage->icon().c_str()),
QKeySequence(), isUsePropPanel);
- myActionsMgr->addCommand(aAction);
salomeConnector()->setNestedActions(aId, aNestedFeatures.split(" "));
+ myActionsMgr->addCommand(aAction);
myPartSetModule->featureCreated(aAction);
} else {