Un-wait a waiting task when deleted

This commit is contained in:
Max Rossmannek
2021-04-06 14:59:57 +02:00
committed by Tomas Babej
parent 33dcea68f5
commit 6546c050c5
2 changed files with 14 additions and 0 deletions

View File

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