From: vsv Date: Wed, 7 Oct 2020 17:48:49 +0000 (+0300) Subject: bos #20148: EDF - error in projection with "break connection" in sketcher X-Git-Tag: V9_6_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b7a113a5ccaff46051aff5b8b2c27c9bcf6c4a5;p=modules%2Fshaper.git bos #20148: EDF - error in projection with "break connection" in sketcher --- 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