mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT Plot. Clear plot when changing well or branch
This commit is contained in:
parent
d02274a897
commit
5bab568a85
@ -832,9 +832,18 @@ void RimWellRftPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
{
|
||||
setDescription(QString(plotNameFormatString()).arg(m_wellName));
|
||||
}
|
||||
|
||||
if (changedField == &m_wellName || changedField == &m_branchIndex)
|
||||
{
|
||||
auto plotTrack = m_wellLogPlot->trackByIndex(0);
|
||||
for (const auto& curve : plotTrack->curvesVector())
|
||||
{
|
||||
plotTrack->removeCurve(curve);
|
||||
}
|
||||
updateEditorsFromCurves();
|
||||
}
|
||||
else if (changedField == &m_selectedSources ||
|
||||
changedField == &m_selectedTimeSteps ||
|
||||
changedField == &m_branchIndex)
|
||||
changedField == &m_selectedTimeSteps)
|
||||
{
|
||||
syncCurvesFromUiSelection();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user