#5775 Add ensemble id to RimSummaryCaseCollection.

This commit is contained in:
Kristian Bendiksen
2020-04-08 16:17:47 +02:00
committed by Gaute Lindkvist
parent bc08aa1905
commit 6dd4dabc33
5 changed files with 72 additions and 5 deletions

View File

@@ -260,6 +260,12 @@ RimSummaryCaseCollection*
RimSummaryCaseCollection* summaryCaseCollection = allocator();
if ( !collectionName.isEmpty() ) summaryCaseCollection->setName( collectionName );
if ( summaryCaseCollection->ensembleId() == -1 )
{
RimProject* project = RiaApplication::instance()->project();
project->assignIdToEnsemble( summaryCaseCollection );
}
for ( RimSummaryCase* summaryCase : summaryCases )
{
RimSummaryCaseCollection* currentSummaryCaseCollection = nullptr;