changeset 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 (2011-06-24)
parents 8df5d64bf7c5
children 54f3f0f29c95
files main/MainWindow.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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
     }