Fix encoding problem in torrent moving code

This commit is contained in:
Christophe Dumez 2011-01-28 17:05:44 +00:00
parent e94769b58b
commit d6997e7833

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 {