commands: Do not remove wait attribute upon task completion/deletion

This commit is contained in:
Tomas Babej 2021-08-08 09:48:09 -04:00
parent ea008380db
commit 861e8a6414
2 changed files with 0 additions and 8 deletions

View file

@ -92,10 +92,6 @@ int CmdDelete::execute (std::string&)
if (! task.has ("end")) if (! task.has ("end"))
task.setAsNow ("end"); task.setAsNow ("end");
// Un-wait the task, if waiting.
if (task.has ("wait"))
task.remove ("wait");
if (permission (question, filtered.size ())) if (permission (question, filtered.size ()))
{ {
updateRecurrenceMask (task); updateRecurrenceMask (task);

View file

@ -98,10 +98,6 @@ int CmdDone::execute (std::string&)
task.addAnnotation (Context::getContext ().config.get ("journal.time.stop.annotation")); 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 ())) if (permission (taskDifferences (before, task) + question, filtered.size ()))
{ {
updateRecurrenceMask (task); updateRecurrenceMask (task);