Do not create statistics case in constructor

p4#: 21237
This commit is contained in:
Magne Sjaastad 2013-04-11 11:18:40 +02:00
parent 94a4d83885
commit db1dd5dd0d
2 changed files with 1 additions and 2 deletions

View File

@ -54,8 +54,6 @@ RimIdenticalGridCaseGroup::RimIdenticalGridCaseGroup()
m_unionOfMatrixActiveCells = new RigActiveCellInfo;
m_unionOfFractureActiveCells = new RigActiveCellInfo;
createAndAppendStatisticsCase();
}
//--------------------------------------------------------------------------------------------------

View File

@ -592,6 +592,7 @@ RimIdenticalGridCaseGroup* RimUiTreeModelPdm::addCaseGroup(QModelIndex& inserted
beginInsertRows(rootIndex, position, position);
RimIdenticalGridCaseGroup* createdObject = new RimIdenticalGridCaseGroup;
createdObject->createAndAppendStatisticsCase();
proj->caseGroups().push_back(createdObject);
caf::PdmUiTreeItem* childItem = caf::UiTreeItemBuilderPdm::buildViewItems(rootTreeItem, position, createdObject);