- Fixed bug in TDB::loadCompleted that failed to provide a nice value
  for Task::id, and folks not using a Mac saw unitialized int values
  as task IDs.
This commit is contained in:
Paul Beckingham 2009-07-02 18:30:47 -04:00
parent b692ae3b25
commit c89a0bbbd8

View file

@ -297,7 +297,7 @@ int TDB::loadCompleted (std::vector <Task>& tasks, Filter& filter)
line[length - 1] = '\0';
Task task (line);
// Note: no id is set for completed tasks.
task.id = 0; // Need a value, just not a valid value.
if (filter.pass (task))
tasks.push_back (task);