From: nds Date: Thu, 9 Nov 2017 11:30:39 +0000 (+0300) Subject: Opportunity for combo box of getting elements from the feature another attribute. X-Git-Tag: V_2.10.0RC~168 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39fc36c692f48496f6f6c966a4f8341e5bf37827;p=modules%2Fshaper.git Opportunity for combo box of getting elements from the feature another attribute. --- diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.cpp b/src/ModuleBase/ModuleBase_WidgetChoice.cpp index c4d642eaa..7ef0cfb54 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.cpp +++ b/src/ModuleBase/ModuleBase_WidgetChoice.cpp @@ -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 {