From da5174aecc1f0ba2fd25bc3951dda00b91b9fa24 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 18 Mar 2014 21:07:36 +0100 Subject: [PATCH] Confirmation title should have item that is begin deleted --- touch/EpisodeItem.qml | 2 +- touch/EpisodesPage.qml | 2 +- touch/PodcastsPage.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/touch/EpisodeItem.qml b/touch/EpisodeItem.qml index 16e6fea..a0b6e74 100644 --- a/touch/EpisodeItem.qml +++ b/touch/EpisodeItem.qml @@ -77,7 +77,7 @@ Item { enabled: downloadState != Constants.state.deleted onClicked: { var ctx = { py: py, id: id }; - pgst.showConfirmation('Delete episode', 'Delete', 'Cancel', 'Delete this episode?', Icons.trash, function () { + pgst.showConfirmation(title, 'Delete', 'Cancel', 'Delete this episode?', Icons.trash, function () { ctx.py.call('main.delete_episode', [ctx.id]); }); } diff --git a/touch/EpisodesPage.qml b/touch/EpisodesPage.qml index f9161b8..b2b7dac 100644 --- a/touch/EpisodesPage.qml +++ b/touch/EpisodesPage.qml @@ -51,7 +51,7 @@ SlidePage { label: 'Unsubscribe', callback: function () { var ctx = { py: py, id: episodesPage.podcast_id, page: episodesPage }; - pgst.showConfirmation('Unsubscribe', 'Unsubscribe', 'Cancel', 'Remove this podcast and all downloaded episodes?', Icons.trash, function () { + pgst.showConfirmation(title, 'Unsubscribe', 'Cancel', 'Remove this podcast and all downloaded episodes?', Icons.trash, function () { ctx.py.call('main.unsubscribe', [ctx.id]); ctx.page.closePage(); }); diff --git a/touch/PodcastsPage.qml b/touch/PodcastsPage.qml index 016a889..fd3df96 100644 --- a/touch/PodcastsPage.qml +++ b/touch/PodcastsPage.qml @@ -95,7 +95,7 @@ SlidePage { label: 'Unsubscribe', callback: function () { var ctx = { py: py, id: id }; - pgst.showConfirmation('Unsubscribe', 'Unsubscribe', 'Cancel', 'Remove this podcast and all downloaded episodes?', Icons.trash, function () { + pgst.showConfirmation(title, 'Unsubscribe', 'Cancel', 'Remove this podcast and all downloaded episodes?', Icons.trash, function () { ctx.py.call('main.unsubscribe', [ctx.id]); }); } },