[gnome-todo/wip/gbsneto/newtask-row-top-margin: 3/4] task-list-view: Simplify condition



commit 18c928da23d4c38779846987b3d5cd2f5375e324
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun Oct 22 20:03:02 2017 -0200

    task-list-view: Simplify condition

 src/gtd-task-list-view.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index cd25eb6..71e54b3 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -581,8 +581,7 @@ 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 (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]