summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 14:15:14 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 14:15:14 +0200
commitf549e8407d32fa3288dcae5a26e330c64559b15a (patch)
treee34908e65ee3b0edb50ac8239fe3e00c85a08df7 /src
parent4ddef1e8d0477c9bdfd4512bac9b46c50d15add2 (diff)
Setting task id in createTask
Diffstat (limited to 'src')
-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);