[rhythmbox] podcast: allow downloads to be cancelled at 0%
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: allow downloads to be cancelled at 0%
- Date: Sun, 24 Jan 2021 11:13:50 +0000 (UTC)
commit 39e4b4800a72e201f4e15e0dc0f93a90e8da0ca6
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Jan 24 21:11:52 2021 +1000
podcast: allow downloads to be cancelled at 0%
Closes: #1845
podcast/rb-podcast-source.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index 3e249c93b..60bf4690d 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -459,7 +459,7 @@ podcast_download_cancel_action_cb (GSimpleAction *action, GVariant *parameter, g
RhythmDBEntry *entry = (RhythmDBEntry *) lst->data;
gulong status = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_STATUS);
- if ((status > 0 && status < RHYTHMDB_PODCAST_STATUS_COMPLETE) ||
+ if (status < RHYTHMDB_PODCAST_STATUS_COMPLETE ||
status == RHYTHMDB_PODCAST_STATUS_WAITING) {
if (rb_podcast_manager_cancel_download (source->priv->podcast_mgr, entry) == FALSE) {
rhythmdb_entry_set (source->priv->db, entry, RHYTHMDB_PROP_STATUS, &val);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]