]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #20148: EDF - error in projection with "break connection" in sketcher V9_6_0a2
authorvsv <vsv@opencascade.com>
Wed, 7 Oct 2020 17:48:49 +0000 (20:48 +0300)
committervsv <vsv@opencascade.com>
Wed, 7 Oct 2020 17:48:49 +0000 (20:48 +0300)
src/ModuleBase/ModuleBase_PagedContainer.cpp

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