From 861e8a6414dbc0a23f8ff479f5184068415419d9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 8 Aug 2021 09:48:09 -0400 Subject: [PATCH] commands: Do not remove wait attribute upon task completion/deletion --- src/commands/CmdDelete.cpp | 4 ---- src/commands/CmdDone.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/commands/CmdDelete.cpp b/src/commands/CmdDelete.cpp index b6d88effd..894762154 100644 --- a/src/commands/CmdDelete.cpp +++ b/src/commands/CmdDelete.cpp @@ -92,10 +92,6 @@ 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); diff --git a/src/commands/CmdDone.cpp b/src/commands/CmdDone.cpp index 4f9b9f5ef..d9be84ccd 100644 --- a/src/commands/CmdDone.cpp +++ b/src/commands/CmdDone.cpp @@ -98,10 +98,6 @@ 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);