mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6814 Correlation Report: Missing update of plots when changing ensemble
This commit is contained in:
parent
19e2c6e5fa
commit
050899d90e
@ -254,6 +254,9 @@ void RimCorrelationMatrixPlot::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimAbstractCorrelationPlot::fieldChangedByUi( changedField, oldValue, newValue );
|
||||
|
||||
bool sendSelectedSignal = false;
|
||||
|
||||
if ( changedField == &m_showAbsoluteValues || changedField == &m_sortByValues ||
|
||||
changedField == &m_sortByAbsoluteValues || changedField == &m_showOnlyTopNCorrelations ||
|
||||
changedField == &m_topNFilterCount || changedField == &m_excludeParametersWithoutVariation ||
|
||||
@ -266,6 +269,25 @@ void RimCorrelationMatrixPlot::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
updateLegend();
|
||||
loadDataAndUpdate();
|
||||
updateConnectedEditors();
|
||||
sendSelectedSignal = true;
|
||||
}
|
||||
|
||||
if ( changedField == &m_pushButtonSelectSummaryAddress )
|
||||
{
|
||||
sendSelectedSignal = true;
|
||||
}
|
||||
|
||||
if ( sendSelectedSignal )
|
||||
{
|
||||
auto curves = curveDefinitions();
|
||||
auto parameters = m_selectedParametersList();
|
||||
if ( !curves.empty() && !parameters.empty() )
|
||||
{
|
||||
auto firstCurve = curves.front();
|
||||
auto firstParameter = parameters.front();
|
||||
|
||||
matrixCellSelected.send( { firstParameter, firstCurve } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user