mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
#7727 Well Path : Select modified well path when tie-in changes
This commit is contained in:
parent
f9ffd248f1
commit
57cd46c4e2
@ -28,6 +28,8 @@
|
||||
#include "RimWellPathTarget.h"
|
||||
#include "RimWellPathValve.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
#include "cafPdmUiDoubleValueEditor.h"
|
||||
@ -193,6 +195,12 @@ void RimWellPathTieIn::fieldChangedByUi( const caf::PdmFieldHandle* changedField
|
||||
// Update all well paths to make sure the visibility of completion settings is updated
|
||||
// Completions settings is only visible for top-level wells, not for tie-in wells
|
||||
RimTools::wellPathCollection()->updateAllRequiredEditors();
|
||||
|
||||
if ( changedField == &m_parentWell && m_childWell )
|
||||
{
|
||||
RiuMainWindow::instance()->setExpanded( m_childWell );
|
||||
RiuMainWindow::instance()->selectAsCurrentItem( m_childWell );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user