PartSet_WidgetFileSelector::PartSet_WidgetFileSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
-: ModuleBase_WidgetFileSelector(theParent, theData, theParentId)
-, myWorkshop(theWorkshop)
+ const Config_WidgetAPI* theData)
+: ModuleBase_WidgetFileSelector(theParent, theData),
+ myWorkshop(theWorkshop)
{
}
return ModuleBase_WidgetFileSelector::restoreValueCustom();
}
-bool PartSet_WidgetFileSelector::storeValueCustom() const
+bool PartSet_WidgetFileSelector::storeValueCustom()
{
// A rare case when plugin was not loaded.
if (!myFeature)
return false;
DataPtr aData = myFeature->data();
- AttributeStringPtr aStringAttr = aData->string(ExchangePlugin_ExportFeature::FILE_PATH_ID());
+ AttributeStringPtr aStringAttr = aData->string(ExchangePlugin_ExportFeature::FILE_FORMAT_ID());
aStringAttr->setValue(filterToShortFormat(mySelectedFilter).toStdString());
return ModuleBase_WidgetFileSelector::storeValueCustom();