summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/task.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/task.h b/src/task.h
index 5866719..b4afa6e 100644
--- a/src/task.h
+++ b/src/task.h
@@ -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) {