mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 17:35:00 -06:00
- Use QDir::separator instead of / for Windows compatibility
This commit is contained in:
@@ -475,7 +475,7 @@ public:
|
|||||||
current_parent = root_folder;
|
current_parent = root_folder;
|
||||||
QString path = QDir::cleanPath(misc::toQString(fi->path.string()));
|
QString path = QDir::cleanPath(misc::toQString(fi->path.string()));
|
||||||
// Iterate of parts of the path to create necessary folders
|
// Iterate of parts of the path to create necessary folders
|
||||||
QStringList pathFolders = path.split('/');
|
QStringList pathFolders = path.split(QDir::separator());
|
||||||
Q_ASSERT(pathFolders.size() >= 2);
|
Q_ASSERT(pathFolders.size() >= 2);
|
||||||
QString fileName = pathFolders.takeLast();
|
QString fileName = pathFolders.takeLast();
|
||||||
QString currentFolderName = pathFolders.takeFirst();
|
QString currentFolderName = pathFolders.takeFirst();
|
||||||
|
|||||||
Reference in New Issue
Block a user