#5020 Flow Diag : Avoid creating plots in constructor to make pytest work

This commit is contained in:
Magne Sjaastad
2019-11-11 08:34:30 +01:00
parent 585a496db7
commit aa11e3601b
7 changed files with 31 additions and 27 deletions

View File

@@ -96,6 +96,14 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList& fil
}
}
if ( !openedFiles.empty() )
{
if ( project && project->mainPlotCollection() )
{
project->mainPlotCollection()->ensureDefaultFlowPlotsAreCreated();
}
}
// Import summary cases
if ( !summaryFileInfos.empty() )
{