mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2262 Curve Creator : Update curve collection when a curve is turned on/off
This commit is contained in:
parent
99378cc23a
commit
fbee6e23a9
@ -32,8 +32,10 @@
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryCrossPlot.h"
|
||||
#include "RimSummaryCurveAutoName.h"
|
||||
#include "RimSummaryCurveCollection.h"
|
||||
#include "RimSummaryFilter.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
#include "RimSummaryTimeAxisProperties.h"
|
||||
#include "RimTools.h"
|
||||
|
||||
@ -804,6 +806,24 @@ void RimSummaryCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||
|
||||
plot->updateAxes();
|
||||
}
|
||||
|
||||
if (&m_showCurve == changedField)
|
||||
{
|
||||
// If no plot collection is found, we assume that we are inside a curve creator
|
||||
// Update the summary curve collection to make sure the curve names are updated in curve creator UI
|
||||
|
||||
RimSummaryPlotCollection* plotCollection = nullptr;
|
||||
this->firstAncestorOrThisOfType(plotCollection);
|
||||
if (!plotCollection)
|
||||
{
|
||||
RimSummaryCurveCollection* curveColl = nullptr;
|
||||
this->firstAncestorOrThisOfType(curveColl);
|
||||
if (curveColl)
|
||||
{
|
||||
curveColl->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user