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 ()
|
||||
{
|
||||
_keyword = "delete";
|
||||
_usage = "task <filter> delete <mods>";
|
||||
_description = STRING_CMD_DELETE_USAGE;
|
||||
_read_only = false;
|
||||
_displays_id = false;
|
||||
_keyword = "delete";
|
||||
_usage = "task <filter> delete <mods>";
|
||||
_description = STRING_CMD_DELETE_USAGE;
|
||||
_read_only = false;
|
||||
_displays_id = false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -596,7 +596,7 @@ bool Command::permission (
|
||||
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.
|
||||
if (quantity < bulk && !confirmation)
|
||||
return true;
|
||||
@@ -608,7 +608,6 @@ bool Command::permission (
|
||||
case 1: return true; // yes
|
||||
case 2: _permission_all = true; return true; // all
|
||||
case 3: _permission_quit = true; return false; // quit
|
||||
case 4: return false; // no
|
||||
}
|
||||
|
||||
return false; // This line keeps the compiler happy.
|
||||
|
||||
@@ -815,7 +815,7 @@
|
||||
"\n"
|
||||
|
||||
// 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_U "Yes"
|
||||
#define STRING_UTIL_CONFIRM_NO "no"
|
||||
|
||||
Reference in New Issue
Block a user