Fix tile windows command, and make sure logger is reconnected to 3d view if it is closed and reopened

This commit is contained in:
Jon Jenssen
2022-08-23 16:05:31 +02:00
committed by Magne Sjaastad
parent 000605bd99
commit 8c835b5568
9 changed files with 35 additions and 4 deletions

View File

@@ -969,6 +969,13 @@ void RiaGuiApplication::createMainWindow()
m_mainWindow->setDefaultToolbarVisibility();
m_mainWindow->loadWinGeoAndDockToolBarLayout();
m_mainWindow->showWindow();
// if there is an existing logger, reconnect to it
auto logger = dynamic_cast<RiuMessagePanelLogger*>( RiaLogging::loggerInstance() );
if ( logger )
{
logger->addMessagePanel( m_mainWindow->messagePanel() );
}
}
//--------------------------------------------------------------------------------------------------