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