]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Opportunity for combo box of getting elements from the feature another attribute.
authornds <nds@opencascade.com>
Thu, 9 Nov 2017 11:30:39 +0000 (14:30 +0300)
committernds <nds@opencascade.com>
Thu, 9 Nov 2017 11:30:39 +0000 (14:30 +0300)
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 {