From bc8241e99a721f5f76e6d2a6ed81768e38876cee Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 7 Mar 2015 14:29:41 +0100 Subject: [PATCH] Dialog: Notify page stack change after closing See also: https://github.com/gpodder/gpodder-bb10/issues/7 --- touch/Dialog.qml | 5 ++++- touch/Main.qml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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