mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB2
- Every task in pending.data an ID.
This commit is contained in:
parent
1e70f00c29
commit
50fa2c0ddf
1 changed files with 2 additions and 9 deletions
11
src/TDB2.cpp
11
src/TDB2.cpp
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue