- Added feature #608, and now completing a task, with journal.time turned on
  will stop the task first (thanks to Andy Kriger).
This commit is contained in:
Paul Beckingham 2011-01-09 23:39:05 -05:00
parent 109f22051d
commit c08c280dd9
3 changed files with 8 additions and 0 deletions

View file

@ -1862,6 +1862,11 @@ int handleDone (std::string& outs)
// Change status.
task->setStatus (Task::completed);
// Stop the task, if started.
if (task->has ("start") &&
context.config.getBoolean ("journal.time"))
task->addAnnotation (context.config.get ("journal.time.stop.annotation"));
// Only allow valid tasks.
task->validate ();