mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Unicode fix
This commit is contained in:
parent
c36fed3081
commit
061f1000cf
1 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) {
|
||||||
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
|
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
|
||||||
if(path_parts.size() > 1) {
|
if(path_parts.size() > 1) {
|
||||||
root_folder = path_parts.takeFirst();
|
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;
|
++i;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +202,7 @@ QString misc::truncateRootFolder(libtorrent::torrent_handle h) {
|
||||||
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
|
QStringList path_parts = path.split("/", QString::SkipEmptyParts);
|
||||||
if(path_parts.size() > 1) {
|
if(path_parts.size() > 1) {
|
||||||
root_folder = path_parts.takeFirst();
|
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;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue