From: sbh Date: Fri, 7 Nov 2014 11:17:36 +0000 (+0300) Subject: Block shape type combo's signals on restoring values. Fixes issue #220 #230 X-Git-Tag: V_0.5~16^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5f2d60acfaf2502c8e48bc92a313ee2c538853e;p=modules%2Fshaper.git Block shape type combo's signals on restoring values. Fixes issue #220 #230 --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 84b0feb65..6fbb45773 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -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; } }