From 7e038267b47e9854c7e494e47201acd065097c35 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 7 Oct 2020 20:48:49 +0300 Subject: [PATCH] bos #20148: EDF - error in projection with "break connection" in sketcher --- src/ModuleBase/ModuleBase_PagedContainer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index d96a7c70a..2b0117acf 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -105,14 +105,15 @@ bool ModuleBase_PagedContainer::restoreValueCustom() if (aStringAttr->isInitialized()) { if (myIsEditing) aCaseId = QString::fromStdString(aStringAttr->value()); - else + else { aCaseId = QString::fromStdString(aDefVal.empty() ? aStringAttr->value() : aDefVal); - if (!aStringAttr->isInitialized()) - storeValueCustom(); + } int idx = myCaseIds.indexOf(aCaseId); if (idx == -1) idx = currentPageIndex(); setCurrentPageIndex(idx); + if (aStringAttr->value() != aCaseId.toStdString()) + storeValueCustom(); } else { // It is added because if user edits the feature created from Python -- 2.39.2