Salome HOME
Issue #412: Crash on delete sketch line with constraints
[modules/shaper.git] / src / ModuleBase / ModuleBase_PagedContainer.cpp
index 29cdd56eaa51dad616f853ad54df83d0c82f5386..43fb4de2233308b7a25717dea526759092753668 100644 (file)
@@ -31,9 +31,12 @@ ModuleBase_PagedContainer::~ModuleBase_PagedContainer()
 int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage,
                                       const QString& theName, const QString& theCaseId)
 {
+  if (!myPages.count()) {
+    setDefaultValue(theCaseId.toStdString());
+  }
   myCaseIds << theCaseId;
   myPages << thePage;
-  storeValueCustom(); // to store the initial state
+
   return myPages.count();
 }