#2002 RFT Plot: Update rftPlot editor on change of track/plot-settings

This commit is contained in:
Rebecca Cox 2017-11-03 13:47:51 +01:00
parent 771c9d62ed
commit 312004446b
2 changed files with 16 additions and 8 deletions

View File

@ -139,7 +139,14 @@ void RimWellLogPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
updateTracks(); updateTracks();
if (m_viewer) m_viewer->updateChildrenLayout(); if (m_viewer) m_viewer->updateChildrenLayout();
} }
RimWellRftPlot* rftPlot(nullptr);
this->firstAncestorOrThisOfType(rftPlot);
if (rftPlot)
{
rftPlot->updateConnectedEditors();
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -245,13 +245,6 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
else if (changedField == &m_showFormations) else if (changedField == &m_showFormations)
{ {
loadDataAndUpdate(); loadDataAndUpdate();
RimWellRftPlot* rftPlot;
this->firstAncestorOrThisOfType(rftPlot);
if (rftPlot)
{
rftPlot->updateConnectedEditors();
}
} }
else if (changedField == &m_formationCase) else if (changedField == &m_formationCase)
{ {
@ -287,6 +280,14 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
{ {
loadDataAndUpdate(); loadDataAndUpdate();
} }
RimWellRftPlot* rftPlot(nullptr);
this->firstAncestorOrThisOfType(rftPlot);
if (rftPlot)
{
rftPlot->updateConnectedEditors();
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------