diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index bc1e1f102..a5692e5f8 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -942,17 +942,14 @@ bool TorrentImpl::setTags(const TagSet &newTags) { // Identify tags to add for (const Tag &tag : newTags) - { if (!hasTag(tag)) addTag(tag); - } // Identify tags to remove - for (const Tag &tag : asConst(m_tags)) - { + for (const Tag &tag : asConst(tags())) if (!newTags.contains(tag)) removeTag(tag); - } + return true; }