Skip to content

Commit

Permalink
Show correctly decoded filename in log
Browse files Browse the repository at this point in the history
PR #20214.
Closes #20186.
  • Loading branch information
glassez authored Jan 2, 2024
1 parent d5bf035 commit 9bf7f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/bittorrent/sessionimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9bf7f3b

Please sign in to comment.