Browse Source

Unicode fix

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
061f1000cf
  1. 4
      src/misc.cpp

4
src/misc.cpp

@ -186,7 +186,7 @@ QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) { @@ -186,7 +186,7 @@ QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) {
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
if(path_parts.size() > 1) {
root_folder = path_parts.takeFirst();
t->rename_file(i, std::string(path_parts.join("/").toUtf8()));
t->rename_file(i, path_parts.join("/").toUtf8().data());
}
++i;
}
@ -202,7 +202,7 @@ QString misc::truncateRootFolder(libtorrent::torrent_handle h) { @@ -202,7 +202,7 @@ QString misc::truncateRootFolder(libtorrent::torrent_handle h) {
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
if(path_parts.size() > 1) {
root_folder = path_parts.takeFirst();
h.rename_file(i, std::string(path_parts.join("/").toUtf8()));
h.rename_file(i, path_parts.join("/").toUtf8().data());
}
++i;
}

Loading…
Cancel
Save