- TW-1301 Virtual tag +PENDING (thanks to Profpatsch).
- Also added +COMPLETED and +DELETED.
This commit is contained in:
Paul Beckingham 2014-04-12 11:31:47 -04:00
parent a49ed165c3
commit c6b0c0d927
5 changed files with 11 additions and 3 deletions

View file

@ -1169,6 +1169,9 @@ bool Task::hasTag (const std::string& tag) const
if (tag == "WAITING") return has ("wait");
if (tag == "ANNOTATED") return hasAnnotations ();
if (tag == "PARENT") return has ("mask");
if (tag == "PENDING") return get ("status") == "pending";
if (tag == "COMPLETED") return get ("status") == "completed";
if (tag == "DELETED") return get ("status") == "deleted";
// Concrete tags.
std::vector <std::string> tags;