From c50d75a61fc369d221b1fe8e513852ac345d5527 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 29 Jan 2019 11:54:39 +0100 Subject: [PATCH] #3990 Flow Diag : Move creation of RigFlowDiagSolverInterface before computeCachedData computeCachedData triggers update of UI, and update of curves can require RigFlowDiagSolverInterface --- ApplicationCode/ProjectDataModel/RimEclipseResultCase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseResultCase.cpp b/ApplicationCode/ProjectDataModel/RimEclipseResultCase.cpp index 815c241c89..cf773d7738 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseResultCase.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseResultCase.cpp @@ -190,6 +190,8 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter) progInfo.incrementProgress(); + m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this); + CVF_ASSERT(this->eclipseCaseData()); CVF_ASSERT(readerInterface.notNull()); @@ -199,8 +201,6 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter) m_gridAndWellDataIsReadFromFile = true; m_activeCellInfoIsReadFromFile = true; - m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this); - QFileInfo eclipseCaseFileInfo(caseFileName()); QString rftFileName = eclipseCaseFileInfo.path() + "/" + eclipseCaseFileInfo.completeBaseName() + ".RFT"; QFileInfo rftFileInfo(rftFileName);