mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-252
- TW-252 task done - Doesn't stop task before marking complete (thanks to Renato Alves).
This commit is contained in:
parent
75af8d6ca4
commit
5697270ecf
2 changed files with 8 additions and 3 deletions
|
@ -85,9 +85,12 @@ int CmdDone::execute (std::string& output)
|
|||
task->setEnd ();
|
||||
|
||||
// Stop the task, if started.
|
||||
if (task->has ("start") &&
|
||||
context.config.getBoolean ("journal.time"))
|
||||
task->addAnnotation (context.config.get ("journal.time.stop.annotation"));
|
||||
if (task->has ("start"))
|
||||
{
|
||||
task->remove ("start");
|
||||
if (context.config.getBoolean ("journal.time"))
|
||||
task->addAnnotation (context.config.get ("journal.time.stop.annotation"));
|
||||
}
|
||||
|
||||
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue