#2843 Fix missing 2d intersection view name updates

This commit is contained in:
Jacob Støren
2018-05-03 09:55:08 +02:00
parent 2f80e99abc
commit 8b6c226f5b
3 changed files with 31 additions and 4 deletions

View File

@@ -165,6 +165,16 @@ void RimIntersection::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
updateName();
}
if (changedField == &name)
{
Rim2dIntersectionView* iView = correspondingIntersectionView();
if (iView)
{
iView->updateName();
iView->updateConnectedEditors();
}
}
if (changedField == &inputPolyLineFromViewerEnabled
|| changedField == &m_userPolyline)
{
@@ -612,6 +622,12 @@ void RimIntersection::updateName()
name = wellPath()->name();
}
Rim2dIntersectionView* iView = correspondingIntersectionView();
if (iView)
{
iView->updateName();
iView->updateConnectedEditors();
}
}
//--------------------------------------------------------------------------------------------------