Sync
- Corrected handling of backlog.data after a synch, using TF2::clear_tasks.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user