Do not activate a 3d view that already is active.

This commit is contained in:
jonjenssen authored and JJ committed 2026-06-22 14:16:47 +02:00
1 parent 3e126ee091
commit 947680fdf9
5 files changed
+10 -7

No files matched your search

@@ -196,7 +196,7 @@ void RimDockWindowController::setAsActiveViewer()
for ( auto view : mainWindow->viewWindows() )
{
if ( view->isActive() )
if ( view->isActiveViewer() )
{
view->setActive( false );
view->updateWindowTitle();
@@ -342,7 +342,7 @@ void RimViewWindow::updateWindowTitle()
viewWidget()->setWindowTitle( windowTitle() );
dockWidget()->setWindowTitle( windowTitle() );
if ( isActive() )
if ( isActiveViewer() )
{
dockWidget()->setIcon( QIcon( ":/ActiveWindow.svg" ) );
}
@@ -436,7 +436,7 @@ void RimViewWindow::setActive( bool active )
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimViewWindow::isActive() const
bool RimViewWindow::isActiveViewer() const
{
return m_isActiveViewer;
}
@@ -47,7 +47,7 @@ public:
void setShowWindow( bool showWindow );
void setAsActiveViewer();
bool isActive() const;
bool isActiveViewer() const;
bool isMainDockedWindow() const;