Confirmation
- Removed confirmation override imposed by the 'delete' command. Consistency prevails.
This commit is contained in:
@@ -40,11 +40,11 @@ extern Context context;
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
CmdDelete::CmdDelete ()
|
CmdDelete::CmdDelete ()
|
||||||
{
|
{
|
||||||
_keyword = "delete";
|
_keyword = "delete";
|
||||||
_usage = "task <filter> delete <mods>";
|
_usage = "task <filter> delete <mods>";
|
||||||
_description = STRING_CMD_DELETE_USAGE;
|
_description = STRING_CMD_DELETE_USAGE;
|
||||||
_read_only = false;
|
_read_only = false;
|
||||||
_displays_id = false;
|
_displays_id = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -596,7 +596,7 @@ bool Command::permission (
|
|||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quantity < bulk modifications have optional confirmation, in the (y/n/a/q)
|
// 1 < Quantity < bulk modifications have optional confirmation, in the (y/n/a/q)
|
||||||
// style.
|
// style.
|
||||||
if (quantity < bulk && !confirmation)
|
if (quantity < bulk && !confirmation)
|
||||||
return true;
|
return true;
|
||||||
@@ -608,7 +608,6 @@ bool Command::permission (
|
|||||||
case 1: return true; // yes
|
case 1: return true; // yes
|
||||||
case 2: _permission_all = true; return true; // all
|
case 2: _permission_all = true; return true; // all
|
||||||
case 3: _permission_quit = true; return false; // quit
|
case 3: _permission_quit = true; return false; // quit
|
||||||
case 4: return false; // no
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false; // This line keeps the compiler happy.
|
return false; // This line keeps the compiler happy.
|
||||||
|
|||||||
@@ -815,7 +815,7 @@
|
|||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
// util
|
// util
|
||||||
#define STRING_UTIL_CONFIRM_YN " (y/n) "
|
#define STRING_UTIL_CONFIRM_YN " (yes/no) "
|
||||||
#define STRING_UTIL_CONFIRM_YES "yes"
|
#define STRING_UTIL_CONFIRM_YES "yes"
|
||||||
#define STRING_UTIL_CONFIRM_YES_U "Yes"
|
#define STRING_UTIL_CONFIRM_YES_U "Yes"
|
||||||
#define STRING_UTIL_CONFIRM_NO "no"
|
#define STRING_UTIL_CONFIRM_NO "no"
|
||||||
|
|||||||
Reference in New Issue
Block a user