mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05: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:
1 parent
98ce0dc226
commit
f44df76089
1 file changed
+2
-1
@@ -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