Fix broken layout of toolbars at startup, avoid blank window
This commit is contained in:
parent
e5afb392af
commit
3c50de4334
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user