Un-wait a waiting task when done

Implements #2322
This commit is contained in:
Max Rossmannek 2020-12-12 19:24:12 +01:00 committed by Tomas Babej
parent 5c92dea674
commit 33dcea68f5
2 changed files with 20 additions and 0 deletions

View file

@ -94,6 +94,10 @@ int CmdDone::execute (std::string&)
task.addAnnotation (Context::getContext ().config.get ("journal.time.stop.annotation"));
}
// Un-wait the task, if waiting.
if (task.has ("wait"))
task.remove ("wait");
if (permission (taskDifferences (before, task) + question, filtered.size ()))
{
updateRecurrenceMask (task);