Task: Use getStatus () call to determine if task is pending

This commit is contained in:
Tomas Babej 2021-08-08 09:35:49 -04:00
parent 0c22823771
commit ea008380db

View file

@ -1344,7 +1344,7 @@ bool Task::hasTag (const std::string& tag) const
if (tag == "PARENT") return has ("mask") || has ("last"); // 2017-01-07: Deprecated in 2.6.0 if (tag == "PARENT") return has ("mask") || has ("last"); // 2017-01-07: Deprecated in 2.6.0
if (tag == "TEMPLATE") return has ("last") || has ("mask"); if (tag == "TEMPLATE") return has ("last") || has ("mask");
if (tag == "WAITING") return is_waiting (); if (tag == "WAITING") return is_waiting ();
if (tag == "PENDING") return get ("status") == "pending"; if (tag == "PENDING") return getStatus () == Task::pending;
if (tag == "COMPLETED") return get ("status") == "completed"; if (tag == "COMPLETED") return get ("status") == "completed";
if (tag == "DELETED") return get ("status") == "deleted"; if (tag == "DELETED") return get ("status") == "deleted";
#ifdef PRODUCT_TASKWARRIOR #ifdef PRODUCT_TASKWARRIOR