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())) {