From f90efd7e38ccf49b9070e8244358e787cb319c9a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 1 Dec 2020 20:46:28 -0600 Subject: [PATCH] Fix infinite polish() loop when quitting a game due to removal of the 'overlay' property on Qt 6.0 --- app/gui/NavigableDialog.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/gui/NavigableDialog.qml b/app/gui/NavigableDialog.qml index 5cf7a55d..a41c011c 100644 --- a/app/gui/NavigableDialog.qml +++ b/app/gui/NavigableDialog.qml @@ -2,7 +2,8 @@ import QtQuick 2.0 import QtQuick.Controls 2.2 Dialog { - parent: overlay + // We should use Overlay.overlay here but that's not available in Qt 5.9 :( + parent: ApplicationWindow.contentItem x: Math.round((parent.width - width) / 2) y: Math.round((parent.height - height) / 2)