mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
Make sure we create multiple plots if we import multiple summary cases at once.
This commit is contained in:
parent
c9aa9285d2
commit
2a57adf222
@ -135,12 +135,16 @@ bool RicImportSummaryCasesFeature::createAndAddSummaryCasesFromFiles( const QStr
|
||||
addSummaryCases( *cases );
|
||||
if ( !cases->empty() && doCreateDefaultPlot )
|
||||
{
|
||||
auto objectToSelect = RicSummaryPlotBuilder::createAndAppendDefaultSummaryMultiPlot( { cases->back() }, {} );
|
||||
|
||||
if ( objectToSelect )
|
||||
RimSummaryMultiPlot* plotToSelect = nullptr;
|
||||
for ( auto sumCase : *cases )
|
||||
{
|
||||
RiuPlotMainWindowTools::setExpanded( objectToSelect );
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( objectToSelect );
|
||||
plotToSelect = RicSummaryPlotBuilder::createAndAppendDefaultSummaryMultiPlot( { sumCase }, {} );
|
||||
}
|
||||
|
||||
if ( plotToSelect )
|
||||
{
|
||||
RiuPlotMainWindowTools::setExpanded( plotToSelect );
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( plotToSelect );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user