From 0deeeb0a1d4014f9cf04517142859b0ecbda88cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Reh=C3=A1k?= <33783628+drehak@users.noreply.github.com> Date: Mon, 6 May 2024 01:04:18 +0100 Subject: [PATCH] CmdStart: Fix "make this task pending" note for completed tasks (#2769) --- src/commands/CmdStart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdStart.cpp b/src/commands/CmdStart.cpp index 6329c8129..e63edd1cb 100644 --- a/src/commands/CmdStart.cpp +++ b/src/commands/CmdStart.cpp @@ -83,7 +83,6 @@ int CmdStart::execute (std::string&) std::string question = format ("Start task {1} '{2}'?", task.identifier (true), task.get ("description")); - task.modify (Task::modAnnotate); task.setAsNow ("start"); Task::status status = task.getStatus (); @@ -93,6 +92,7 @@ int CmdStart::execute (std::string&) task.setStatus (Task::pending); } + task.modify (Task::modAnnotate); if (Context::getContext ().config.getBoolean ("journal.time")) task.addAnnotation (Context::getContext ().config.get ("journal.time.start.annotation"));