From e5f2d60acfaf2502c8e48bc92a313ee2c538853e Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 7 Nov 2014 14:17:36 +0300 Subject: [PATCH] Block shape type combo's signals on restoring values. Fixes issue #220 #230 --- src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.39.2