1
0

qml: fix dialog not closing if dialog is shown/hidden more than once

most dialogs are destroyed when closed, therefore not hitting this bug,
but e.g. ChannelOpenProgressDialog is reused.
This commit is contained in:
Sander van Grieken
2023-11-10 11:59:22 +01:00
parent 0fb47c87d2
commit 2995bc8b37

View File

@@ -49,6 +49,7 @@ Dialog {
if (opened) {
app.activeDialogs.push(abstractdialog)
_wasOpened = true
_result = false
} else {
if (!_wasOpened)
return