Salome HOME
The external feature should be executed manually in order to return first result.
[modules/shaper.git] / src / PartSet / PartSet_WidgetFileSelector.cpp
index 0b91dc048ac2f79fa1e7083eee9f74c5f3f234f6..117a8c866fcda85762ecff8fbca710757e5f16b6 100644 (file)
@@ -20,7 +20,7 @@ PartSet_WidgetFileSelector::PartSet_WidgetFileSelector(QWidget* theParent,
 {
 }
 
-bool PartSet_WidgetFileSelector::restoreValue()
+bool PartSet_WidgetFileSelector::restoreValueCustom()
 {
   // A rare case when plugin was not loaded.
   if (!myFeature)
@@ -30,7 +30,7 @@ bool PartSet_WidgetFileSelector::restoreValue()
   AttributeStringPtr aStringAttr = aData->string("export_file_format");
   mySelectedFilter = formatToFilter(shortFormatToFullFormat(QString::fromStdString(aStringAttr->value())));
 
-  return ModuleBase_WidgetFileSelector::restoreValue();
+  return ModuleBase_WidgetFileSelector::restoreValueCustom();
 }
 
 bool PartSet_WidgetFileSelector::storeValueCustom() const
@@ -46,11 +46,6 @@ bool PartSet_WidgetFileSelector::storeValueCustom() const
   return ModuleBase_WidgetFileSelector::storeValueCustom();
 }
 
-QString PartSet_WidgetFileSelector::filterToShortFormat( const QString & theFilter )
-{
-  return theFilter.section(' ', 0, 0);
-}
-
 QString PartSet_WidgetFileSelector::shortFormatToFullFormat( const QString & theFormat ) const
 {
   foreach(const QString & eachFormat, getValidatorFormats())