# HG changeset patch # User Chris Cannam # Date 1308911906 -3600 # Node ID bff590626547f91767c123af0041e9877ee1ae4f # Parent 8df5d64bf7c56ad147f5fe9543e3110a7c372f4f Process events before adjusting size, so that adjustSize gets the correct visibility status for each widget diff -r 8df5d64bf7c5 -r bff590626547 main/MainWindow.cpp --- 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 }