mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
refact: Revert changes introducing '*' to 'applyToTorrents'
This commit is contained in:
parent
dd4adecd11
commit
ee8690c01b
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ namespace
|
||||||
void applyToTorrents(const QStringList &idList, Func func)
|
void applyToTorrents(const QStringList &idList, Func func)
|
||||||
requires std::invocable<Func, BitTorrent::Torrent *>
|
requires std::invocable<Func, BitTorrent::Torrent *>
|
||||||
{
|
{
|
||||||
if ((idList.size() == 1) && ((idList[0] == u"all") || (idList[0] == u"*")))
|
if ((idList.size() == 1) && (idList[0] == u"all"))
|
||||||
{
|
{
|
||||||
for (BitTorrent::Torrent *const torrent : asConst(BitTorrent::Session::instance()->torrents()))
|
for (BitTorrent::Torrent *const torrent : asConst(BitTorrent::Session::instance()->torrents()))
|
||||||
func(torrent);
|
func(torrent);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue