Salome HOME
Hide faces: checking presentation on having any shapes using a whole container of...
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetChoice.cpp
index c4d642eaa507f7170e272f410efc708dd191b68a..7ef0cfb540f37b5c824e455c2b53eafe3da49fef 100644 (file)
@@ -154,6 +154,7 @@ bool ModuleBase_WidgetChoice::restoreValueCustom()
 
   if (aIntAttr->value() != -1) {
     if (myCombo) {
+      bool isBlocked = myCombo->blockSignals(true);
       if (myCombo->count() == 0 && !myStringListAttribute.empty()) {
         AttributeStringArrayPtr aStrAttr = aData->stringArray(myStringListAttribute);
         if (aStrAttr) {
@@ -162,7 +163,6 @@ bool ModuleBase_WidgetChoice::restoreValueCustom()
           }
         }
       }
-      bool isBlocked = myCombo->blockSignals(true);
       myCombo->setCurrentIndex(aIntAttr->value());
       myCombo->blockSignals(isBlocked);
     } else {