Flow Diag : Make sure the Eclipse case is open

This commit is contained in:
Magne Sjaastad 2020-01-12 13:19:13 +01:00
parent 276114f668
commit 198f738be8

View File

@ -912,6 +912,15 @@ QString RimWellAllocationPlot::description() const
void RimWellAllocationPlot::onLoadDataAndUpdate()
{
updateMdiWindowVisibility();
if ( !m_case ) return;
// If no 3D view is open, we have to make sure the case is opened
if ( !m_case->ensureReservoirCaseIsOpen() )
{
return;
}
updateFromWell();
m_accumulatedWellFlowPlot->loadDataAndUpdate();
updateFormationNamesData();