- 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

@ -72,4 +72,5 @@ suggestions:
Erlan Sergaziev Erlan Sergaziev
Eric Fluger Eric Fluger
Steve Rader Steve Rader
Andy Kriger

View file

@ -30,6 +30,8 @@
month to be displayed in the calendar report (thanks to Michelle Crane). month to be displayed in the calendar report (thanks to Michelle Crane).
+ Added feature #574, default due dates (thanks to Erlan Sergaziev). + Added feature #574, default due dates (thanks to Erlan Sergaziev).
+ Added feature #575, including Danish holidays (thanks to Irfan Siddiqui). + Added feature #575, including Danish holidays (thanks to Irfan Siddiqui).
+ Added feature #608, and now completing a task, with journal.time turned on
will stop the task first (thanks to Andy Kriger).
+ Eliminated dependency on ncurses. + Eliminated dependency on ncurses.
+ The dependency columns are now right-justified (thanks to Eric Fluger). + The dependency columns are now right-justified (thanks to Eric Fluger).
+ Fixed bug that caused the 'done' command to always exit with a non-zero + Fixed bug that caused the 'done' command to always exit with a non-zero

View file

@ -1862,6 +1862,11 @@ int handleDone (std::string& outs)
// Change status. // Change status.
task->setStatus (Task::completed); 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. // Only allow valid tasks.
task->validate (); task->validate ();