diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 1c2102a4a..5f2c5d32a 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -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())); } //