Bug Fix
- 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:
@@ -297,7 +297,7 @@ int TDB::loadCompleted (std::vector <Task>& tasks, Filter& filter)
|
|||||||
line[length - 1] = '\0';
|
line[length - 1] = '\0';
|
||||||
|
|
||||||
Task task (line);
|
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))
|
if (filter.pass (task))
|
||||||
tasks.push_back (task);
|
tasks.push_back (task);
|
||||||
|
|||||||
Reference in New Issue
Block a user