Recurring Tasks

- Rewrote updateRecurrenceMask, which was hopelessly muddled after the
  TDB -> TDB2 change.
- Modified associated code.
- Improved signal to noise ratio in unit tests.
This commit is contained in:
Paul Beckingham 2011-09-11 01:56:56 -04:00
parent 6e8d2ca79c
commit 6e649f3f45
5 changed files with 36 additions and 50 deletions

View file

@ -125,7 +125,7 @@ int CmdDelete::execute (std::string& output)
{
// Update mask in parent.
task->setStatus (Task::deleted);
updateRecurrenceMask (siblings, *task);
updateRecurrenceMask (*task);
// Don't want a 'delete' to clobber the end date that may have
// been written by a 'done' command.
@ -183,7 +183,6 @@ int CmdDelete::execute (std::string& output)
}
context.tdb2.commit ();
output = out.str ();
return rc;
}

View file

@ -103,7 +103,7 @@ int CmdDone::execute (std::string& output)
}
}
updateRecurrenceMask (filtered, *task);
updateRecurrenceMask (*task);
if (!nagged)
nagged = nag (*task);
}