mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5020 Flow Diag : Avoid creating plots in constructor to make pytest work
This commit is contained in:
@@ -154,6 +154,8 @@ RimWellAllocationPlot::~RimWellAllocationPlot()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellAllocationPlot::setFromSimulationWell( RimSimWellInView* simWell )
|
||||
{
|
||||
m_showWindow = true;
|
||||
|
||||
RimEclipseView* eclView;
|
||||
simWell->firstAncestorOrThisOfType( eclView );
|
||||
RimEclipseResultCase* eclCase;
|
||||
@@ -170,8 +172,6 @@ void RimWellAllocationPlot::setFromSimulationWell( RimSimWellInView* simWell )
|
||||
m_flowDiagSolution = m_case->defaultFlowDiagSolution();
|
||||
}
|
||||
|
||||
m_showWindow = true;
|
||||
|
||||
onLoadDataAndUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user