Show correctly decoded filename in log

PR #20214.
Closes #20186.
This commit is contained in:
Vladimir Golovnev 2024-01-02 16:03:12 +03:00 committed by Vladimir Golovnev (glassez)
parent a83424a7a7
commit a56b3edc58
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -5831,7 +5831,7 @@ void SessionImpl::handleFileErrorAlert(const lt::file_error_alert *p)
const QString msg = QString::fromStdString(p->message());
LogMsg(tr("File error alert. Torrent: \"%1\". File: \"%2\". Reason: \"%3\"")
.arg(torrent->name(), QString::fromLocal8Bit(p->filename()), msg)
.arg(torrent->name(), QString::fromUtf8(p->filename()), msg)
, Log::WARNING);
emit fullDiskError(torrent, msg);
}