]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_PagedContainer.cpp
Salome HOME
Minor corrections
[modules/shaper.git] / src / ModuleBase / ModuleBase_PagedContainer.cpp
index d067e100c6132365785787373c2bdb665079a8c7..29cdd56eaa51dad616f853ad54df83d0c82f5386 100644 (file)
@@ -33,6 +33,7 @@ int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage,
 {
   myCaseIds << theCaseId;
   myPages << thePage;
+  storeValueCustom(); // to store the initial state
   return myPages.count();
 }
 
@@ -95,6 +96,7 @@ bool ModuleBase_PagedContainer::storeValueCustom() const
   AttributeStringPtr aStringAttr = aData->string(attributeID());
   QString aWidgetValue = myCaseIds.at(currentPageIndex());
   aStringAttr->setValue(aWidgetValue.toStdString());
+  updateObject(myFeature); // for preview
   return true;
 }