Summary: Set default value true for display of sub nodes

Set display of summary nodes to true. This will ensure that the display of vectors in "Data Sources" for a single summary case will be updated when a calculated curve is added or removed.
This commit is contained in:
Magne Sjaastad
2024-03-21 11:48:56 +01:00
parent 78759feb15
commit 61254ba1b2
3 changed files with 3 additions and 16 deletions

View File

@@ -171,7 +171,7 @@ void RimSummaryCaseCollection::addCase( RimSummaryCase* summaryCase )
{
summaryCase->nameChanged.connect( this, &RimSummaryCaseCollection::onCaseNameChanged );
if ( m_cases.empty() ) summaryCase->setShowRealizationDataSource( true );
summaryCase->setShowRealizationDataSource( m_cases.empty() );
m_cases.push_back( summaryCase );
m_cachedSortedEnsembleParameters.clear();