diff --git a/touch/Dialog.qml b/touch/Dialog.qml index 3dcaa39..d708202 100644 --- a/touch/Dialog.qml +++ b/touch/Dialog.qml @@ -36,7 +36,10 @@ Rectangle { pgst.topOfStackChanged(); } - Component.onDestruction: pgst.dialogsVisible = pgst.dialogsVisible - 1; + Component.onDestruction: { + pgst.dialogsVisible = pgst.dialogsVisible - 1; + pgst.onDialogDismissed(page); + } default property alias children: contents.children property bool isDialog: true diff --git a/touch/Main.qml b/touch/Main.qml index 7a7f665..28c89f7 100644 --- a/touch/Main.qml +++ b/touch/Main.qml @@ -102,6 +102,19 @@ Item { property string menuButtonIcon: '' property string windowTitle: 'gPodder' + function onDialogDismissed(dialog) { + for (var i=0; i