]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #860 - patch to avoid the text reset
authorasl <asl@opencascade.com>
Tue, 25 Aug 2015 08:20:15 +0000 (11:20 +0300)
committerasl <asl@opencascade.com>
Tue, 25 Aug 2015 08:20:37 +0000 (11:20 +0300)
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;