Fix encoding problem in torrent moving code

This commit is contained in:
Christophe Dumez
2011-01-28 17:08:56 +00:00
parent 9c633b0975
commit 54cd79201f
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
- BUGFIX: Make sure the progress is not 100% unless the file is complete - BUGFIX: Make sure the progress is not 100% unless the file is complete
- BUGFIX: Fix memory leak in HTTP torrent downloader - BUGFIX: Fix memory leak in HTTP torrent downloader
- BUGFIX: Use native file dialogs (by Vladimir Golovnev) - BUGFIX: Use native file dialogs (by Vladimir Golovnev)
- BUGFIX: Fix encoding problem in torrent moving code (by Vladimir Golovnev)
- BUGFIX: Performance improvement on ARM - BUGFIX: Performance improvement on ARM
* Sun Jan 23 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.4 * Sun Jan 23 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.4

View File

@@ -474,7 +474,7 @@ void QTorrentHandle::move_storage(QString new_path) const {
// or move_storage() will fail... // or move_storage() will fail...
QDir().mkpath(new_path); QDir().mkpath(new_path);
// Actually move the storage // Actually move the storage
torrent_handle::move_storage(new_path.toLocal8Bit().constData()); torrent_handle::move_storage(new_path.toUtf8().constData());
} }
bool QTorrentHandle::save_torrent_file(QString path) const { bool QTorrentHandle::save_torrent_file(QString path) const {