From ea4f2c40e8714f16c4171506e5b976f903ade71a Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Tue, 21 Jan 2025 13:13:23 +0100 Subject: [PATCH] fix: setTags applyToTorrents Co-authored-by: Vladimir Golovnev --- src/webui/api/torrentscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index f611aea27..23145f87f 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -1483,7 +1483,7 @@ void TorrentsController::setTagsAction() const QStringList tags {params()[u"tags"_s].split(u',', Qt::SkipEmptyParts)}; 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())) {