mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Make modify and delete commands respect rc.recurrence.confirmation config option.
This commit is contained in:
parent
c47c7536f5
commit
75c0e41fcc
2 changed files with 7 additions and 5 deletions
|
@ -137,9 +137,10 @@ int CmdDelete::execute (std::string&)
|
|||
else
|
||||
{
|
||||
std::vector <Task> children = Context::getContext ().tdb2.children (task);
|
||||
if (children.size () &&
|
||||
(Context::getContext ().config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_DELETE_CONFIRM_R)))
|
||||
if (children.size() &&
|
||||
((Context::getContext ().config.get ("recurrence.confirmation") == "prompt"
|
||||
&& confirm (STRING_CMD_DELETE_CONFIRM_R)) ||
|
||||
Context::getContext ().config.getBoolean ("recurrence.confirmation")))
|
||||
{
|
||||
for (auto& child : children)
|
||||
{
|
||||
|
|
|
@ -200,8 +200,9 @@ int CmdModify::modifyRecurrenceParent (
|
|||
|
||||
auto children = Context::getContext ().tdb2.children (task);
|
||||
if (children.size () &&
|
||||
(! Context::getContext ().config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_MODIFY_RECUR)))
|
||||
((Context::getContext ().config.get ("recurrence.confirmation") == "prompt"
|
||||
&& confirm (STRING_CMD_MODIFY_RECUR)) ||
|
||||
Context::getContext ().config.getBoolean ("recurrence.confirmation")))
|
||||
{
|
||||
for (auto& child : children)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue