mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4790 Make sure window maximation state is restored after project load + tiling fixes
This commit is contained in:
@@ -58,7 +58,7 @@ void RiuMdiArea::resizeEvent( QResizeEvent* resizeEvent )
|
||||
}
|
||||
|
||||
RiuMainWindowBase* mainWindow = dynamic_cast<RiuMainWindowBase*>( window() );
|
||||
mainWindow->setBlockSlotSubWindowActivated( true );
|
||||
mainWindow->setBlockSubWindowActivation( true );
|
||||
|
||||
// Workaround for Qt bug #51761: https://bugreports.qt.io/browse/QTBUG-51761
|
||||
// Set the first window to be the active window then perform resize event and set back.
|
||||
@@ -70,7 +70,7 @@ void RiuMdiArea::resizeEvent( QResizeEvent* resizeEvent )
|
||||
|
||||
setActiveSubWindow( a );
|
||||
|
||||
mainWindow->setBlockSlotSubWindowActivated( false );
|
||||
mainWindow->setBlockSubWindowActivation( false );
|
||||
|
||||
for ( auto subWindow : subWindowList() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user