diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 9bba45c82..3c2367150 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -4330,7 +4330,7 @@ void Session::handleTorrentDeleteFailedAlert(libt::torrent_delete_failed_alert * if (p->error) { LogMsg(tr("'%1' was removed from the transfer list but the files couldn't be deleted. Error: %2", "'xxx.avi' was removed...") - .arg(tmpRemovingTorrentData.name, QString::fromStdString(p->error.message())) + .arg(tmpRemovingTorrentData.name, QString::fromLocal8Bit(p->error.message().c_str())) , Log::WARNING); } else { diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 85460e7bd..ec1528e2c 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1711,7 +1711,7 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const libtorrent::save_resum } else { LogMsg(tr("Save resume data failed. Torrent: \"%1\", error: \"%2\"") - .arg(name(), QString::fromStdString(p->error.message())), Log::CRITICAL); + .arg(name(), QString::fromLocal8Bit(p->error.message().c_str())), Log::CRITICAL); m_session->handleTorrentResumeDataFailed(this); } } @@ -1781,7 +1781,7 @@ void TorrentHandle::handleFileRenameFailedAlert(const libtorrent::file_rename_fa { LogMsg(tr("File rename failed. Torrent: \"%1\", file: \"%2\", reason: \"%3\"") .arg(name(), filePath(p->index) - , QString::fromStdString(p->error.message())), Log::WARNING); + , QString::fromLocal8Bit(p->error.message().c_str())), Log::WARNING); m_oldPath[LTFileIndex {p->index}].removeFirst(); if (m_oldPath[LTFileIndex {p->index}].isEmpty())