X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PagedContainer.cpp;h=b4e8b5690604a1e99bf607ec79cbb0a8b704d06d;hb=872ac5e3e0196ad70c2a01a79bd070c9a7d4a2e6;hp=29cdd56eaa51dad616f853ad54df83d0c82f5386;hpb=08c3ac23e89dcdc6504121af63731d764e1b6b42;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index 29cdd56ea..b4e8b5690 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include @@ -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(); }