From f39d3296ab9e3a4cccbad67ca139827d4f898675 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 1 Jan 2010 13:24:57 +0000 Subject: [PATCH] - Use QDir::separator instead of / for Windows compatibility --- src/torrentfilesmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrentfilesmodel.h b/src/torrentfilesmodel.h index 813930836..a919dde4d 100644 --- a/src/torrentfilesmodel.h +++ b/src/torrentfilesmodel.h @@ -475,7 +475,7 @@ public: current_parent = root_folder; QString path = QDir::cleanPath(misc::toQString(fi->path.string())); // 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); QString fileName = pathFolders.takeLast(); QString currentFolderName = pathFolders.takeFirst();