mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
Do not activate a 3d view that already is active.
This commit is contained in:
1 parent
3e126ee091
commit
947680fdf9
5 files changed
+10
-7
No files matched your search
@@ -816,7 +816,7 @@ RimViewWindow* RiuPlotMainWindow::activeViewer()
|
||||
{
|
||||
for ( auto view : viewWindows() )
|
||||
{
|
||||
if ( view->isActive() )
|
||||
if ( view->isActiveViewer() )
|
||||
{
|
||||
return view;
|
||||
}
|
||||
|
||||
@@ -727,8 +727,11 @@ void RiuViewer::mousePressEvent( QMouseEvent* mouseEvent )
|
||||
|
||||
if ( auto ownView = ownerViewWindow() )
|
||||
{
|
||||
ownView->setAsActiveViewer();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( ownView );
|
||||
if ( !ownView->isActiveViewer() )
|
||||
{
|
||||
ownView->setAsActiveViewer();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( ownView );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user