Bug Fix - confirmation was broken
- Fixed inverted condition that broke confirmation.
This commit is contained in:
@@ -434,7 +434,7 @@ std::string handleDelete (TDB& tdb, T& task, Config& conf)
|
|||||||
{
|
{
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
if (conf.get ("confirmation", true) || confirm ("Permanently delete task?"))
|
if (!conf.get (std::string ("confirmation"), false) || confirm ("Permanently delete task?"))
|
||||||
{
|
{
|
||||||
std::vector <T> all;
|
std::vector <T> all;
|
||||||
tdb.allPendingT (all);
|
tdb.allPendingT (all);
|
||||||
|
|||||||
Reference in New Issue
Block a user