mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
fix: setTags applyToTorrents
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
parent
51cabe99df
commit
ea4f2c40e8
1 changed files with 1 additions and 1 deletions
|
@ -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()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue