diff main/MainWindow.cpp @ 447:bff590626547 toggle

Process events before adjusting size, so that adjustSize gets the correct visibility status for each widget
author Chris Cannam
date Fri, 24 Jun 2011 11:38:26 +0100
parents 8df5d64bf7c5
children 54f3f0f29c95
line wrap: on
line diff
--- a/main/MainWindow.cpp	Fri Jun 24 11:29:06 2011 +0100
+++ b/main/MainWindow.cpp	Fri Jun 24 11:38:26 2011 +0100
@@ -4212,6 +4212,7 @@
     if (wasMinimal) {
         resizeConstrained(settings.value("size").toSize());
     } else {
+        QApplication::processEvents();
         adjustSize(); //shrinks successfully the main window but does not remove the space allocated for the central widget containing panes
     }