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();
}