summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/taskmanager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/taskmanager.cc b/src/taskmanager.cc
index f27692e..cf7defc 100644
--- a/src/taskmanager.cc
+++ b/src/taskmanager.cc
@@ -125,8 +125,9 @@ TaskIdList TaskManager::createTask(taskid_t parentid)
TaskIdList affectedTasks;
task_t t;
- t.title = "";
taskid_t id = createId();
+ t.title = "";
+ t.id = id;
try {
affectedTasks = tree.insertAsChild(parentid, id, t);