From 3ce3e69a217055142b03d67add35d054979a6340 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 19 Mar 2021 13:56:33 +0300 Subject: [PATCH] Bos #24055 [CEA 24054] Editing ExtrusionCut object updates other. --- src/ModuleBase/ModuleBase_PagedContainer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index 2b0117acf..0489eef20 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -103,11 +103,7 @@ bool ModuleBase_PagedContainer::restoreValueCustom() AttributeStringPtr aStringAttr = aData->string(attributeID()); QString aCaseId; if (aStringAttr->isInitialized()) { - if (myIsEditing) - aCaseId = QString::fromStdString(aStringAttr->value()); - else { - aCaseId = QString::fromStdString(aDefVal.empty() ? aStringAttr->value() : aDefVal); - } + aCaseId = QString::fromStdString(aStringAttr->value()); int idx = myCaseIds.indexOf(aCaseId); if (idx == -1) idx = currentPageIndex(); -- 2.39.2