TW01438
- TW-1438 Configuration setting rc.confirmation=no no longer disables
confirmation requests (thanks to Adam Coddington).
This commit is contained in:
@@ -90,7 +90,8 @@ int CmdAnnotate::execute (std::string& output)
|
||||
// Annotate siblings.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
if (confirm (STRING_CMD_ANNO_CONFIRM_R))
|
||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_ANNO_CONFIRM_R))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
|
||||
@@ -90,7 +90,8 @@ int CmdAppend::execute (std::string& output)
|
||||
// Append to siblings.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
if (confirm (STRING_CMD_APPEND_CONFIRM_R))
|
||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_APPEND_CONFIRM_R))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
|
||||
@@ -103,7 +103,8 @@ int CmdDelete::execute (std::string& output)
|
||||
// Delete siblings.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
if (confirm (STRING_CMD_DELETE_CONFIRM_R))
|
||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_DELETE_CONFIRM_R))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
@@ -137,7 +138,8 @@ int CmdDelete::execute (std::string& output)
|
||||
{
|
||||
std::vector <Task> children = context.tdb2.children (*task);
|
||||
if (children.size () &&
|
||||
confirm (STRING_CMD_DELETE_CONFIRM_R))
|
||||
(context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_DELETE_CONFIRM_R)))
|
||||
{
|
||||
std::vector <Task>::iterator child;
|
||||
for (child = children.begin (); child != children.end (); ++child)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -90,7 +90,8 @@ int CmdPrepend::execute (std::string& output)
|
||||
// Prepend to siblings.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
if (confirm (STRING_CMD_PREPEND_CONFIRM_R))
|
||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
||||
confirm (STRING_CMD_PREPEND_CONFIRM_R))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
|
||||
@@ -171,6 +171,7 @@ int CmdShow::execute (std::string& output)
|
||||
" monthsperline"
|
||||
" nag"
|
||||
" print.empty.columns"
|
||||
" recurrence.confirmation"
|
||||
" recurrence.indicator"
|
||||
" recurrence.limit"
|
||||
" regex"
|
||||
|
||||
Reference in New Issue
Block a user