From 6e4700e3ad4d81a89dcd96c084568e6ea425c608 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:01:02 +0000 Subject: [PATCH] fix: setTags grab tags from method --- src/base/bittorrent/torrentimpl.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; }