Avoid call to updateConnectedEditors from updatePlotTitle

This commit is contained in:
Magne Sjaastad 2017-12-14 15:04:14 +01:00
parent 603f63a773
commit 3b9e7d0106
3 changed files with 4 additions and 2 deletions

View File

@ -217,6 +217,7 @@ void RicSummaryCurveCreator::fieldChangedByUi(const caf::PdmFieldHandle* changed
else if (changedField == &m_useAutoPlotTitleProxy) else if (changedField == &m_useAutoPlotTitleProxy)
{ {
m_previewPlot->updatePlotTitle(); m_previewPlot->updatePlotTitle();
m_previewPlot->summaryCurveCollection()->updateConnectedEditors(); m_previewPlot->summaryCurveCollection()->updateConnectedEditors();
} }
} }

View File

@ -667,6 +667,7 @@ void RimSummaryCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
{ {
plot->updateAxes(); plot->updateAxes();
plot->updatePlotTitle(); plot->updatePlotTitle();
plot->updateConnectedEditors();
} }
else if (changedField == &m_plotAxis) else if (changedField == &m_plotAxis)
{ {
@ -807,6 +808,7 @@ void RimSummaryCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
plot->updateAxes(); plot->updateAxes();
plot->updatePlotTitle(); plot->updatePlotTitle();
plot->updateConnectedEditors();
} }
if (&m_showCurve == changedField) if (&m_showCurve == changedField)

View File

@ -499,8 +499,6 @@ void RimSummaryPlot::updatePlotTitle()
m_userDefinedPlotTitle = generatePlotTitle(m_nameHelper.get()); m_userDefinedPlotTitle = generatePlotTitle(m_nameHelper.get());
updateCurveNames(); updateCurveNames();
this->updateConnectedEditors();
} }
updateMdiWindowTitle(); updateMdiWindowTitle();
@ -1042,6 +1040,7 @@ void RimSummaryPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
changedField == &m_useAutoPlotTitle) changedField == &m_useAutoPlotTitle)
{ {
updatePlotTitle(); updatePlotTitle();
updateConnectedEditors();
} }
if (changedField == &m_useAutoPlotTitle && !m_useAutoPlotTitle) if (changedField == &m_useAutoPlotTitle && !m_useAutoPlotTitle)