mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4892 Add Comparison view drop-down to linked view master.
Works as shadow of the views comparison view setting. Make it follow the dependent viewcontrollers managed view. Comparison view dropdown moved to "Viewer" group in view panel. Avoid infinite recursion loops when comparison views are set up in circle
This commit is contained in:
@@ -216,6 +216,8 @@ void RimViewController::fieldChangedByUi( const caf::PdmFieldHandle* changedFiel
|
||||
RimGridView* previousManagedView = dynamic_cast<RimGridView*>( prevValue );
|
||||
RimViewController::removeOverrides( previousManagedView );
|
||||
|
||||
ownerViewLinker()->notifyManagedViewChange(previousManagedView, m_managedView());
|
||||
|
||||
setManagedView( m_managedView() );
|
||||
|
||||
m_name.uiCapability()->updateConnectedEditors();
|
||||
@@ -469,6 +471,11 @@ RimGridView* RimViewController::managedView() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimViewController::setManagedView( RimGridView* view )
|
||||
{
|
||||
if (m_managedView != view)
|
||||
{
|
||||
ownerViewLinker()->notifyManagedViewChange(m_managedView(), view);
|
||||
}
|
||||
|
||||
m_managedView = view;
|
||||
|
||||
updateOptionSensitivity();
|
||||
|
||||
Reference in New Issue
Block a user