qml: fix confusion when dialogs not on top of activeDialog stack are closed
This commit is contained in:
@@ -16,7 +16,12 @@ Dialog {
|
||||
if (opened) {
|
||||
app.activeDialogs.push(abstractdialog)
|
||||
} else {
|
||||
app.activeDialogs.pop()
|
||||
if (app.activeDialogs.indexOf(abstractdialog) < 0) {
|
||||
console.log('dialog should exist in activeDialogs!')
|
||||
app.activeDialogs.pop()
|
||||
return
|
||||
}
|
||||
app.activeDialogs.splice(app.activeDialogs.indexOf(abstractdialog),1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user