Gui: Fix stylesheet loading order
For some platforms due to event loop and timer triggering being not deterministic stylesheets could be loaded before style parameters were fully loaded. This caused warnings about style parameters to appear potentially confusing users. This commit changes the stylesheet loading to happen much earlier in the process so the stylesheet is applied before theme preselection has chance to happen.
This commit is contained in:
committed by
Chris Hennes
parent
908f9ff36e
commit
bb234b3b44
@@ -225,6 +225,7 @@ void StartupPostProcess::execute()
|
||||
setLocale();
|
||||
setCursorFlashing();
|
||||
setQtStyle();
|
||||
setStyleSheet();
|
||||
checkOpenGL();
|
||||
loadOpenInventor();
|
||||
setBranding();
|
||||
@@ -503,8 +504,6 @@ void StartupPostProcess::activateWorkbench()
|
||||
fcApp->initSpaceball(mainWindow);
|
||||
}
|
||||
|
||||
setStyleSheet();
|
||||
|
||||
// Now run the background autoload, for workbenches that should be loaded at startup, but not
|
||||
// displayed to the user immediately
|
||||
autoloadModules(wb);
|
||||
|
||||
Reference in New Issue
Block a user