mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5185 Regression Test : Always set regression image size on snapshot commands
This commit is contained in:
@@ -108,7 +108,15 @@ void RiuMainWindowTools::setWindowSizeOnWidgetsInMdiWindows( RiuMainWindowBase*
|
||||
if ( !w ) continue;
|
||||
|
||||
w->showNormal();
|
||||
}
|
||||
|
||||
// Process events before resize to make sure the widget is ready for resize
|
||||
// If not, a maximized window with not get the prescribed window size
|
||||
QApplication::processEvents();
|
||||
|
||||
for ( auto w : widgets )
|
||||
{
|
||||
if ( !w ) continue;
|
||||
auto viewWindow = RiuInterfaceToViewWindow::viewWindowFromWidget( w->widget() );
|
||||
|
||||
if ( viewWindow && viewWindow->viewWidget() )
|
||||
|
||||
Reference in New Issue
Block a user