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
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5
3 changed files with 6 additions and 2 deletions

View file

@ -357,7 +357,7 @@ int CmdInfo::execute (std::string& output)
if (task.hasTag ("WEEK")) virtualTags += "WEEK ";
if (task.hasTag ("YEAR")) virtualTags += "YEAR ";
if (task.hasTag ("YESTERDAY")) virtualTags += "YESTERDAY ";
// If you update the above list, update src/commands/CmdInfo.cpp and src/commands/CmdTags.cpp as well.
// If you update the above list, update src/Task.cpp and src/commands/CmdTags.cpp as well.
row = view.addRow ();
view.set (row, 0, "Virtual tags");

View file

@ -212,7 +212,8 @@ int CmdCompletionTags::execute (std::string& output)
unique["WEEK"] = 0;
unique["YEAR"] = 0;
unique["YESTERDAY"] = 0;
// If you update the above list, update src/commands/CmdInfo.cpp and src/commands/CmdTags.cpp as well.
// If you update the above list, update src/commands/CmdInfo.cpp and src/Task.cpp as well.
std::stringstream out;
for (auto& it : unique)