+ std::string aTextRepr = aRef->text();
+ if (!aTextRepr.empty()) {
+ bool isBlocked = mySpinBox->blockSignals(true);
+ mySpinBox->setText(QString::fromStdString(aTextRepr));
+ mySpinBox->blockSignals(isBlocked);
+ } else {
+ ModuleBase_Tools::setSpinValue(mySpinBox, aRef->value());
+ }