mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 04:23:24 +02:00
TW01438
- TW-1438 Configuration setting rc.confirmation=no no longer disables confirmation requests (thanks to Adam Coddington).
This commit is contained in:
parent
fd518e3fce
commit
9936157704
11 changed files with 26 additions and 8 deletions
|
@ -117,7 +117,8 @@ int CmdModify::execute (std::string& output)
|
|||
// Task potentially has siblings - modify them.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
if (confirm (STRING_CMD_MODIFY_RECUR))
|
||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_MODIFY_RECUR))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
|
@ -148,7 +149,8 @@ int CmdModify::execute (std::string& output)
|
|||
{
|
||||
std::vector <Task> children = context.tdb2.children (*task);
|
||||
if (children.size () &&
|
||||
confirm (STRING_CMD_MODIFY_RECUR))
|
||||
(! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_MODIFY_RECUR)))
|
||||
{
|
||||
std::vector <Task>::iterator child;
|
||||
for (child = children.begin (); child != children.end (); ++child)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue