]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Block shape type combo's signals on restoring values. Fixes issue #220 #230
authorsbh <sergey.belash@opencascade.com>
Fri, 7 Nov 2014 11:17:36 +0000 (14:17 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 7 Nov 2014 11:17:36 +0000 (14:17 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 84b0feb65cd220af4a43a2e9f72727c785c10fdd..6fbb45773cb6e45c7f2d72cc1d3486d584c2aa76 100644 (file)
@@ -219,7 +219,9 @@ void ModuleBase_WidgetMultiSelector::setCurrentShapeType(const TopAbs_ShapeEnum
     aShapeTypeName = myTypeCombo->itemText(idx);
     TopAbs_ShapeEnum aRefType = ModuleBase_WidgetShapeSelector::shapeType(aShapeTypeName);
     if(aRefType == theShapeType && idx != myTypeCombo->currentIndex()) {
+      bool isBlocked = myTypeCombo->blockSignals(true);
       myTypeCombo->setCurrentIndex(idx);
+      myTypeCombo->blockSignals(isBlocked);
       break;
     }
   }