You've already forked qBittorrent
mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-10-14 11:52:15 +02:00
Compare commits
1 Commits
release-1.
...
release-1.
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f9b3ebd259 |
@@ -234,7 +234,7 @@ class arborescence {
|
|||||||
void addFile(QString path, size_type file_size, int index, float progress=0., int priority=1) {
|
void addFile(QString path, size_type file_size, int index, float progress=0., int priority=1) {
|
||||||
Q_ASSERT(root->isDir());
|
Q_ASSERT(root->isDir());
|
||||||
path = QDir::cleanPath(path);
|
path = QDir::cleanPath(path);
|
||||||
Q_ASSERT(path.startsWith(root->path()));
|
//Q_ASSERT(path.startsWith(root->path()));
|
||||||
QString relative_path = path.remove(0, root->path().size());
|
QString relative_path = path.remove(0, root->path().size());
|
||||||
if(relative_path.at(0) ==QDir::separator())
|
if(relative_path.at(0) ==QDir::separator())
|
||||||
relative_path.remove(0, 1);
|
relative_path.remove(0, 1);
|
||||||
|
Reference in New Issue
Block a user