mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task: Use getStatus () call to determine if task is pending
This commit is contained in:
parent
0c22823771
commit
ea008380db
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue