Fix infinite polish() loop when quitting a game due to removal of the 'overlay' property on Qt 6.0

This commit is contained in:
Cameron Gutman 2020-12-01 20:46:28 -06:00
parent fab142dd38
commit f90efd7e38

View file

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