Confirmation

- Removed confirmation override imposed by the 'delete' command.  Consistency
  prevails.
This commit is contained in:
Paul Beckingham 2011-10-15 19:11:55 -04:00
parent 23991f72da
commit 548272fb3a
3 changed files with 7 additions and 8 deletions

View file

@ -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;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -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.

View file

@ -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"