#9956 Summary Plot: Fix update of operations on multiple ensembles

When multiple ensemble curve sets are toggled on/off, it is required to do a full RimSummaryPlot::loadDataAndUpdate() that will call RimEnsembleCurveSet::updateCurves() on all ensembles in the plot. This can be a heavy operation, but will happen only once.
This commit is contained in:
Magne Sjaastad 2023-03-13 19:33:36 +01:00
parent 9b4a3f663e
commit 064c0adb8c

View File

@ -633,10 +633,13 @@ void RimEnsembleCurveSet::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
if ( changedField == &m_showCurves )
{
loadDataAndUpdate( true );
updateConnectedEditors();
// When multiple ensemble curve sets are toggled on/off, it is required to do a full RimSummaryPlot::loadDataAndUpdate() that will
// call RimEnsembleCurveSet::updateCurves() on all ensembles in the plot. This can be a heavy operation, but will happen only once.
// https://github.com/OPM/ResInsight/issues/9956
plot->loadDataAndUpdate();
updateTextInPlot = true;
}
else if ( changedField == &m_yValuesSummaryAddressUiField )