use QDir::rootPath() to make the folders panel functional on Windows

svn path=/trunk/KDE/kdebase/apps/; revision=788155
This commit is contained in:
Peter Penz 2008-03-20 21:37:15 +00:00
parent c50a1e000f
commit 0d9e87975e

View 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;