Revise tag related implementations

Fix #12690.
This commit is contained in:
Chocobo1 2021-04-02 13:45:50 +08:00
parent ab6141edb7
commit fdc186c92f
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
20 changed files with 257 additions and 50 deletions

View file

@ -350,11 +350,7 @@ void Application::runExternalProgram(const BitTorrent::Torrent *torrent) const
#endif
break;
case u'G':
{
QStringList tags = torrent->tags().values();
std::sort(tags.begin(), tags.end(), Utils::Compare::NaturalLessThan<Qt::CaseInsensitive>());
program.replace(i, 2, tags.join(','));
}
program.replace(i, 2, torrent->tags().join(QLatin1String(",")));
break;
case u'I':
program.replace(i, 2, torrent->id().toString());