BUGFIX: Fix renaming of files with unicode characters in their name

This commit is contained in:
Christophe Dumez
2010-01-20 08:48:11 +00:00
parent 26b2367833
commit 33b60779d6
2 changed files with 2 additions and 1 deletions

View File

@@ -652,7 +652,7 @@ void QTorrentHandle::prioritize_first_last_piece(bool b) {
}
void QTorrentHandle::rename_file(int index, QString name) {
h.rename_file(index, name.toStdString());
h.rename_file(index, std::string(name.toLocal8Bit().data()));
}
//