mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
don't remove line breaks in setCommentAction()
This commit is contained in:
parent
a60bf52c05
commit
54a8553f67
1 changed files with 1 additions and 2 deletions
|
@ -2149,8 +2149,7 @@ void TorrentsController::setCommentAction()
|
|||
requireParams({u"hashes"_s, u"comment"_s});
|
||||
|
||||
const QStringList hashes {params()[u"hashes"_s].split(u'|')};
|
||||
const QString comment = params()[u"comment"_s].trimmed()
|
||||
.replace(QRegularExpression(u"\r?\n"_s), u" "_s);
|
||||
const QString comment = params()[u"comment"_s].trimmed();
|
||||
|
||||
applyToTorrents(hashes, [&comment](BitTorrent::Torrent *const torrent)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue