Fix save path encoding on non-utf8 systems (e.g. Windows)

Fix progress bar style on Windows
This commit is contained in:
Christophe Dumez
2010-09-25 17:02:40 +00:00
parent a4c7640499
commit 1626d938d1
5 changed files with 27 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ int QTorrentHandle::num_incomplete() const {
QString QTorrentHandle::save_path() const {
Q_ASSERT(h.is_valid());
return misc::toQString(h.save_path().string()).replace("\\", "/");
return misc::toQStringU(h.save_path().string()).replace("\\", "/");
}
#if LIBTORRENT_VERSION_MINOR > 14