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 GitHub
parent d5bf0358cb
commit 9bf7f3b181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5703,7 +5703,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);
}