mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-31 17:03:30 +02:00
Feature #1054
Require confirmation for replacing the entire description of a single task.
This commit is contained in:
parent
c6c99c2e38
commit
b230da75e6
1 changed files with 4 additions and 1 deletions
|
@ -424,8 +424,11 @@ void Command::modify_task_description_replace (Task& task, const A3& arguments)
|
||||||
modify_task (task, arguments, description);
|
modify_task (task, arguments, description);
|
||||||
|
|
||||||
if (description.length ())
|
if (description.length ())
|
||||||
|
{
|
||||||
|
_needs_confirm = true;
|
||||||
task.set ("description", description);
|
task.set ("description", description);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void Command::modify_task_description_prepend (Task& task, const A3& arguments)
|
void Command::modify_task_description_prepend (Task& task, const A3& arguments)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue