Moved adding of one statistics case to contstructor to make sure the statistics case UI is displayed when creating a new grid case group

p4#: 21232
This commit is contained in:
Magne Sjaastad
2013-04-11 08:45:56 +02:00
parent 665c2ace8b
commit 807c6de823

View File

@@ -54,6 +54,8 @@ RimIdenticalGridCaseGroup::RimIdenticalGridCaseGroup()
m_unionOfMatrixActiveCells = new RigActiveCellInfo;
m_unionOfFractureActiveCells = new RigActiveCellInfo;
createAndAppendStatisticsCase();
}
//--------------------------------------------------------------------------------------------------
@@ -90,11 +92,6 @@ void RimIdenticalGridCaseGroup::addCase(RimCase* reservoir)
caseCollection()->reservoirs().push_back(reservoir);
if (statisticsCaseCollection->reservoirs().size() == 0)
{
createAndAppendStatisticsCase();
}
clearActiveCellUnions();
clearStatisticsResults();
updateMainGridAndActiveCellsForStatisticsCases();