[rhythmbox] task-list: try even harder to not expire removed tasks
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] task-list: try even harder to not expire removed tasks
- Date: Fri, 23 May 2014 13:31:07 +0000 (UTC)
commit c2e5ffcbda972108a15824a69fe5f2b9c6228718
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri May 23 23:28:09 2014 +1000
task-list: try even harder to not expire removed tasks
probably actually fixed https://bugzilla.gnome.org/show_bug.cgi?id=724931
shell/rb-task-list.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-task-list.c b/shell/rb-task-list.c
index b3816ef..c8405de 100644
--- a/shell/rb-task-list.c
+++ b/shell/rb-task-list.c
@@ -162,6 +162,9 @@ expire_task (RBTaskList *list, RBTaskProgress *task, gint seconds)
TaskExpiry *expiry;
cancel_expiry (list, task);
+ if (rb_list_model_find (list->model, task) == -1)
+ return;
+
expiry = g_new0 (TaskExpiry, 1);
expiry->task = task;
expiry->list = list;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]