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 6bec323d94
commit 520d7e979b
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

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 == "TEMPLATE") return has ("last") || has ("mask");
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 == "DELETED") return get ("status") == "deleted";
#ifdef PRODUCT_TASKWARRIOR