]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bos #24055 [CEA 24054] Editing ExtrusionCut object updates other.
authorjfa <jfa@opencascade.com>
Fri, 19 Mar 2021 10:56:33 +0000 (13:56 +0300)
committerjfa <jfa@opencascade.com>
Fri, 19 Mar 2021 10:56:33 +0000 (13:56 +0300)
src/ModuleBase/ModuleBase_PagedContainer.cpp

index 2b0117acf866d4d3e7803a017ab1d00f77e8cfcd..0489eef207d9e7529757cad0817f79dc1bb88d07 100644 (file)
@@ -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();