diff options
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -107,6 +107,7 @@ public: ~TaskList(){} void insert(task_t t) { + if(t.id == t.parent_id) return; printf("inserting task %d with parent %d\n", t.id, t.parent_id); if(t.parent_id == -1) { |