Avoid Qt bug by using onAfterRendering instead of onAfterSynchronizing to display dialogs

This commit is contained in:
Cameron Gutman
2018-10-05 19:54:13 -07:00
parent e182445593
commit 113751a4bc
+4 -1
View File
@@ -82,7 +82,10 @@ ApplicationWindow {
property bool initialized: false property bool initialized: false
onAfterSynchronizing: { // BUG: Using onAfterSynchronizing: here causes very strange
// failures on Linux. Many shaders fail to compile and we
// eventually segfault deep inside the Qt OpenGL code.
onAfterRendering: {
// We use this callback to trigger dialog display because // We use this callback to trigger dialog display because
// it only happens once the window is fully constructed. // it only happens once the window is fully constructed.
// Doing it earlier can lead to the dialog appearing behind // Doing it earlier can lead to the dialog appearing behind