fix: setTags applyToTorrents

Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
ze0s 2025-01-21 13:13:23 +01:00 committed by GitHub
commit ea4f2c40e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1483,7 +1483,7 @@ void TorrentsController::setTagsAction()
const QStringList tags {params()[u"tags"_s].split(u',', Qt::SkipEmptyParts)}; const QStringList tags {params()[u"tags"_s].split(u',', Qt::SkipEmptyParts)};
TagSet newTags {tags.begin(), tags.end()}; TagSet newTags {tags.begin(), tags.end()};
applyToTorrents(hashes, [&newTags](BitTorrent::Torrent *const torrent) applyToTorrents(hashes, [newTags](BitTorrent::Torrent *const torrent)
{ {
for (const Tag &tag : asConst(torrent->tags())) for (const Tag &tag : asConst(torrent->tags()))
{ {