[gnome-todo/wip/lists] list-item: check list size
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/lists] list-item: check list size
- Date: Sun, 21 Jun 2015 02:36:46 +0000 (UTC)
commit 27a9f08872b9d40c8b800f5ad85bd7416ca82671
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jun 20 23:36:19 2015 -0300
list-item: check list size
src/gtd-task-list-item.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-task-list-item.c b/src/gtd-task-list-item.c
index a1b6757..6a706f3 100644
--- a/src/gtd-task-list-item.c
+++ b/src/gtd-task-list-item.c
@@ -161,6 +161,7 @@ gtd_task_list_item__render_thumbnail (GtdTaskListItem *item)
* no undone tasks here.
*/
if (!tasks ||
+ (g_list_length (tasks) == 0) ||
(tasks && !gtd_task_get_complete (tasks->data)))
{
/* Draw the task name for each selected row. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]