mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 07:30:20 -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
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user