- Corrected handling of backlog.data after a synch, using TF2::clear_tasks.
This commit is contained in:
Paul Beckingham
2012-10-08 17:43:14 -04:00
parent c5ff24358c
commit 98d9a367f3
3 changed files with 16 additions and 4 deletions

View File

@@ -188,6 +188,13 @@ void TF2::add_line (const std::string& line)
_dirty = true;
}
////////////////////////////////////////////////////////////////////////////////
void TF2::clear_tasks ()
{
_tasks.clear ();
_dirty = true;
}
////////////////////////////////////////////////////////////////////////////////
void TF2::clear_lines ()
{
@@ -243,7 +250,7 @@ void TF2::commit ()
// Truncate the file and rewrite.
_file.truncate ();
// only write out _tasks, because any deltas have already been applied.
// Only write out _tasks, because any deltas have already been applied.
std::vector <Task>::iterator task;
for (task = _tasks.begin ();
task != _tasks.end ();