From b230da75e63df6a2c7c54dc26a4d0937527acfdf Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Fri, 25 Jan 2013 00:15:00 +0100 Subject: [PATCH] Feature #1054 Require confirmation for replacing the entire description of a single task. --- src/commands/Command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 330e57032..dc62a93aa 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -424,7 +424,10 @@ void Command::modify_task_description_replace (Task& task, const A3& arguments) modify_task (task, arguments, description); if (description.length ()) - task.set ("description", description); + { + _needs_confirm = true; + task.set ("description", description); + } } ////////////////////////////////////////////////////////////////////////////////