[gnome-todo/wip/gbsneto/subtasks: 2/2] task: correctly check stop condition



commit 7ed18787152d846f966cb2d769c8f30df4cc4926
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Oct 14 11:41:19 2016 -0300

    task: correctly check stop condition

 src/gtd-task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtd-task.c b/src/gtd-task.c
index d29ba97..a06e4da 100644
--- a/src/gtd-task.c
+++ b/src/gtd-task.c
@@ -1488,7 +1488,7 @@ gtd_task_is_subtask (GtdTask *self,
 
       aux = g_queue_pop_head (queue);
     }
-  while (!g_queue_is_empty (queue));
+  while (aux);
 
   g_queue_free (queue);
 


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