From e863772159a3bbb2a5d22631bb7f93b40c5df8fe Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 23 Oct 2010 15:26:08 +0000 Subject: [PATCH] Fix possible string encoding problem --- src/bittorrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 9dea1d641..afcc4c757 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2177,7 +2177,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { if(h.is_valid()) { // Attempt to remove old folder if empty const QString& old_save_path = TorrentPersistentData::getPreviousPath(h.hash()); - const QString new_save_path = QString::fromLocal8Bit(p->path.c_str()); + const QString new_save_path = misc::toQStringU(p->path); qDebug("Torrent moved from %s to %s", qPrintable(old_save_path), qPrintable(new_save_path)); QDir old_save_dir(old_save_path); if(old_save_dir != QDir(defaultSavePath) && old_save_dir != QDir(defaultTempPath)) {