CmdTags: Update pointers to task enumeration lists

This commit is contained in:
Tomas Babej
2021-10-02 21:35:14 -04:00
parent 8610268cd9
commit dbf641988e
3 changed files with 6 additions and 2 deletions

View File

@@ -1347,6 +1347,9 @@ bool Task::hasTag (const std::string& tag) const
// Note: This list must match that in ::feedback_reserved_tags.
if (isupper (tag[0]))
{
// NOTE: This list should be kept synchronized with:
// * the list in CmdTags.cpp for the _tags command.
// * the list in CmdInfo.cpp for the info command.
if (tag == "BLOCKED") return is_blocked;
if (tag == "UNBLOCKED") return !is_blocked;
if (tag == "BLOCKING") return is_blocking;