From ba8c57e5041414ba2ec9ef79ab0d491f29fcd8d9 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 13 Jan 2014 19:08:56 +0000 Subject: [PATCH] Fixed userlist tag suggestions not being seen. --- src/api/api.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/api.cpp b/src/api/api.cpp index 8b3c4c73..b3f315d9 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -496,6 +496,14 @@ BOSS_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugi pluginIt = std::find(db->userMetadata.begin(), db->userMetadata.end(), boss::Plugin(plugin)); if (pluginIt != db->userMetadata.end()) { *userlistModified = true; + std::set tags = pluginIt->Tags(); + for (std::set::const_iterator it = tags.begin(), endIt = tags.end(); it != endIt; ++it) { + if (it->IsAddition()) + tagsAdded.insert(it->Name()); + else + tagsRemoved.insert(it->Name()); + + } } if ((!tagsAdded.empty() || !tagsRemoved.empty()) && db->bashTagMap.empty()) {