[gnome-todo] task-list-view: fix condition for empty state



commit 2030751a3d8f35764f7ad8bd6ee5aecab8fc3e57
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jul 6 00:12:42 2015 -0300

    task-list-view: fix condition for empty state
    
    Logic bomb!

 src/gtd-task-list-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index c1f9560..fe5c293 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -172,8 +172,8 @@ gtd_task_list_view__update_empty_state (GtdTaskListView *view)
 
       for (l = tasks; l != NULL; l = l->next)
         {
-          if (gtd_task_get_complete (l->data) ||
-              (priv->show_completed && !gtd_task_get_complete (l->data)))
+          if (!gtd_task_get_complete (l->data) ||
+              (priv->show_completed && gtd_task_get_complete (l->data)))
             {
               is_empty = FALSE;
               break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]