Salome HOME
Abort Sketch by click on the button in the tool bar. Abort nested opened operations.
[modules/shaper.git] / src / ModuleBase / ModuleBase_PagedContainer.cpp
index 29cdd56eaa51dad616f853ad54df83d0c82f5386..b4e8b5690604a1e99bf607ec79cbb0a8b704d06d 100644 (file)
@@ -13,7 +13,7 @@
 #include <ModelAPI_AttributeString.h>
 
 #include <QWidget>
-#include <Qlist>
+#include <QList>
 #include <QVBoxLayout>
 
 
@@ -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();
 }