#3952 Summary : Expand new summary case

This commit is contained in:
Magne Sjaastad 2019-01-14 11:15:04 +01:00
parent 58651bf15e
commit 061c1d304d

View File

@ -90,9 +90,9 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile(const QStringList& file
if (sumCaseColl)
{
std::vector<RimSummaryCase*> newSumCases = sumCaseColl->createSummaryCasesFromFileInfos(summaryFileInfos);
for (RimSummaryCase* newSumCase : newSumCases)
{
RimSummaryCaseCollection* existingCollection = nullptr;
QString gridCaseFile = RifEclipseSummaryTools::findGridCaseFileFromSummaryHeaderFile(newSumCase->summaryHeaderFilename());
RimEclipseCase* gridCase = project->eclipseCaseFromGridFileName(gridCaseFile);
@ -150,6 +150,11 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile(const QStringList& file
}
sumCaseColl->updateAllRequiredEditors();
}
if (!newSumCases.empty())
{
RiuPlotMainWindowTools::setExpanded(newSumCases.back());
}
}
}