]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Open the sidebar on applications:/, not on applications:, that URL makes no sense...
authorDavid Faure <faure@kde.org>
Wed, 24 Dec 2008 11:45:09 +0000 (11:45 +0000)
committerDavid Faure <faure@kde.org>
Wed, 24 Dec 2008 11:45:09 +0000 (11:45 +0000)
BUG: 178416

svn path=/trunk/KDE/kdebase/apps/; revision=901012

src/treeviewsidebarpage.cpp

index f6b3349d2ea11acca68a7dd2e967ae916d1de580..d8387aea2ce3f9c6e46de41a31e19466f574ceca 100644 (file)
@@ -238,14 +238,14 @@ void TreeViewSidebarPage::loadTree(const KUrl& url)
     Q_ASSERT(m_dirLister != 0);
     m_leafDir = url;
 
     Q_ASSERT(m_dirLister != 0);
     m_leafDir = url;
 
-    KUrl baseUrl = url;
+    KUrl baseUrl;
     if (url.isLocalFile()) {
     if (url.isLocalFile()) {
-        // use the root directory as base for local URLs
+        // use the root directory as base for local URLs (#150941)
         baseUrl = QDir::rootPath();
     } else {
         // clear the path for non-local URLs and use it as base
         baseUrl = url;
         baseUrl = QDir::rootPath();
     } else {
         // clear the path for non-local URLs and use it as base
         baseUrl = url;
-        baseUrl.setPath(QString());
+        baseUrl.setPath(QString('/'));
     }
 
     if (m_dirLister->url() != baseUrl) {
     }
 
     if (m_dirLister->url() != baseUrl) {