Fix broken layout of toolbars at startup, avoid blank window

This commit is contained in:
wmayer
2013-02-17 13:50:57 +01:00
parent 13a57755c8
commit 10630b1fd6

View File

@@ -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;