Salome HOME
Fix solvespace version number in environment.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFileSelector.cpp
index 5abfea54d6303a7337321cfeb6f63ddebba6b0f2..dbe8e8ce30411823c8863bd989e56b5b2585101d 100644 (file)
@@ -88,7 +88,9 @@ bool ModuleBase_WidgetFileSelector::restoreValueCustom()
   AttributeStringPtr aStringAttr = aData->string(attributeID());
 
   bool isBlocked = myPathField->blockSignals(true);
-  myPathField->setText(QString::fromStdString(aStringAttr->value()));
+  QString aNewText = QString::fromStdString(aStringAttr->value());
+  if( myPathField->text() != aNewText )
+    myPathField->setText( aNewText );
   myPathField->blockSignals(isBlocked);
 
   return true;