From d10e9be5005f44946270f7fe1264542585bc186a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 22 Mar 2009 23:50:42 -0400 Subject: [PATCH] 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. --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index 5cfdc1e00..64e70cc91 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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 all; tdb.allPendingT (all);