1
0

fix dialog stack handling when closing from outside

This commit is contained in:
Sander van Grieken
2022-09-27 17:16:09 +02:00
parent d65a7e7efc
commit 2778a1bc20

View File

@@ -229,10 +229,11 @@ ApplicationWindow
onClosing: {
if (activeDialogs.length > 0) {
console.log('dialog on top')
var activeDialog = activeDialogs.pop()
var activeDialog = activeDialogs[activeDialogs.length - 1]
if (activeDialog.allowClose) {
activeDialog.close()
} else {
console.log('dialog disallowed close')
}
close.accepted = false
return