mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
refact: Replace '*' with 'all' before passing to 'applyToTorrents'
This commit is contained in:
parent
5d3a7da689
commit
dd4adecd11
1 changed files with 4 additions and 1 deletions
|
@ -1181,7 +1181,10 @@ void TorrentsController::removeTrackersAction()
|
|||
{
|
||||
requireParams({u"hash"_s, u"urls"_s});
|
||||
|
||||
const QStringList idStrings = params()[u"hash"_s].split(u'|', Qt::SkipEmptyParts);
|
||||
QString hash = params()[u"hash"_s];
|
||||
if (hash == u"*"_s)
|
||||
hash = u"all"_s;
|
||||
const QStringList idStrings = hash.split(u'|', Qt::SkipEmptyParts);
|
||||
const QStringList urlsParam = params()[u"urls"_s].split(u'|', Qt::SkipEmptyParts);
|
||||
|
||||
QStringList urls;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue