- Every task in pending.data an ID.
This commit is contained in:
Paul Beckingham 2011-08-28 00:02:15 -04:00
parent 1e70f00c29
commit 50fa2c0ddf

View file

@ -239,7 +239,6 @@ void TF2::commit ()
_dirty = false; _dirty = false;
} }
} }
} }
} }
@ -270,14 +269,8 @@ void TF2::load_tasks ()
++line_number; ++line_number;
Task task (*i); Task task (*i);
// Only set an ID for live tasks. // Every task gets an ID.
Task::status status = task.getStatus (); task.id = context.tdb2.next_id ();
if (status != Task::deleted &&
status != Task::completed)
{
task.id = context.tdb2.next_id ();
}
_tasks.push_back (task); _tasks.push_back (task);
// Maintain mapping for ease of link/dependency resolution. // Maintain mapping for ease of link/dependency resolution.