mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2843 Fix missing 2d intersection view name updates
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user