From f549e8407d32fa3288dcae5a26e330c64559b15a Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 4 May 2012 14:15:14 +0200 Subject: Setting task id in createTask --- src/taskmanager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3