#4018 Result management : Use ensureReservoirCaseIsOpen instead of open...

This commit is contained in:
Magne Sjaastad
2019-01-29 10:06:30 +01:00
parent 6935ea0688
commit fde60d1e34
7 changed files with 10 additions and 13 deletions

View File

@@ -71,13 +71,10 @@ void RicfExportProperty::execute()
return;
}
if (!eclipseCase->eclipseCaseData())
if (!eclipseCase->ensureReservoirCaseIsOpen())
{
if (!eclipseCase->openReserviorCase())
{
RiaLogging::error(QString("exportProperty: Could not find eclipseCaseData with ID %1").arg(m_caseId()));
return;
}
RiaLogging::error(QString("exportProperty: Could not find eclipseCaseData with ID %1").arg(m_caseId()));
return;
}
}