]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewsidebarpage.cpp
use QDir::rootPath() to make the folders panel functional on Windows
[dolphin.git] / src / treeviewsidebarpage.cpp
index 930c380d9d0b7591ed61d45fee72e4c34acaf9b8..d84b72ae24a66ce3e69e126e041d0639199dec2f 100644 (file)
@@ -233,7 +233,7 @@ void TreeViewSidebarPage::loadTree(const KUrl& url)
     KUrl baseUrl = url;
     if (url.isLocalFile()) {
         // use the root directory as base for local URLs
-        baseUrl = KUrl("file:///");
+        baseUrl = QDir::rootPath();
     } else {
         // clear the path for non-local URLs and use it as base
         baseUrl = url;