Fix infinite polish() loop when quitting a game due to removal of the 'overlay' property on Qt 6.0
This commit is contained in:
parent
fab142dd38
commit
f90efd7e38
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue