Bug fix - assumed "yes" value, instead of Bool

- Fixed bug where only a value of "yes" would enable confirmation,
  instead of any Boolean true value.
This commit is contained in:
Paul Beckingham 2009-03-22 23:50:42 -04:00
parent f790df24c5
commit d10e9be500

View file

@ -434,7 +434,7 @@ std::string handleDelete (TDB& tdb, T& task, Config& conf)
{
std::stringstream out;
if (conf.get ("confirmation") != "yes" || confirm ("Permanently delete task?"))
if (conf.get ("confirmation", true) || confirm ("Permanently delete task?"))
{
std::vector <T> all;
tdb.allPendingT (all);