From a1caed05c1bf196f3ff1f5aa78206a0dfee540a4 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 9 Mar 2017 16:07:44 +0300 Subject: [PATCH] Issue #1950: Do not update a table on restore field data --- src/CollectionPlugin/CollectionPlugin_WidgetField.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index 59a2dc16b..a34c6e621 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -499,7 +499,9 @@ bool CollectionPlugin_WidgetField::restoreValueCustom() std::string aTypeStr = aSelList->selectionType(); if (aTypeStr == "") return false; // The attribute is not initialized + isBlocked = myShapeTypeCombo->blockSignals(true); myShapeTypeCombo->setCurrentIndex(getSelectionType(aTypeStr)); + myShapeTypeCombo->blockSignals(isBlocked); // Get number of components AttributeStringArrayPtr aStringsAttr = -- 2.39.2