From 3c50de433432b00e0d670606d948a4bf7cce766a Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 17 Feb 2013 13:50:57 +0100 Subject: [PATCH] Fix broken layout of toolbars at startup, avoid blank window --- src/Gui/Application.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index bca7a619c..d329f2169 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1694,7 +1694,10 @@ void Application::runApplication(void) SetASCII("AutoloadModule", start.c_str()); } - //app.activateWorkbench(start.c_str()); + // Call this before showing the main window because otherwise: + // 1. it shows a white window for a few seconds which doesn't look nice + // 2. the layout of the toolbars is completely broken + app.activateWorkbench(start.c_str()); // show the main window if (!hidden) { @@ -1710,8 +1713,6 @@ void Application::runApplication(void) SoQt::setFatalErrorHandler( messageHandlerSoQt, 0 ); #endif - app.activateWorkbench(start.c_str()); - Instance->d->startingUp = false;