mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Early return if the active view is the same as the activated view
This will make sure that selection in the project tree is stable for focus in events.
This commit is contained in:
@@ -1320,7 +1320,8 @@ void RiuMainWindow::slotSubWindowActivated( QMdiSubWindow* subWindow )
|
||||
Rim3dView* previousActiveReservoirView = RiaApplication::instance()->activeReservoirView();
|
||||
Rim3dView* activatedView = dynamic_cast<Rim3dView*>( findViewWindowFromSubWindow( subWindow ) );
|
||||
|
||||
if ( !activatedView ) return;
|
||||
if ( !activatedView || ( previousActiveReservoirView == activatedView ) ) return;
|
||||
|
||||
RiaApplication::instance()->setActiveReservoirView( activatedView );
|
||||
|
||||
if ( !isBlockingViewSelectionOnSubWindowActivated() )
|
||||
|
||||
Reference in New Issue
Block a user