From: David Faure Date: Wed, 24 Dec 2008 11:45:09 +0000 (+0000) Subject: Open the sidebar on applications:/, not on applications:, that URL makes no sense... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/818864ec483a68896ba1eb5abd537c5ccc11cefd?ds=inline Open the sidebar on applications:/, not on applications:, that URL makes no sense [and crashes kdirmodel...]. BUG: 178416 svn path=/trunk/KDE/kdebase/apps/; revision=901012 --- diff --git a/src/treeviewsidebarpage.cpp b/src/treeviewsidebarpage.cpp index f6b3349d2..d8387aea2 100644 --- a/src/treeviewsidebarpage.cpp +++ b/src/treeviewsidebarpage.cpp @@ -238,14 +238,14 @@ void TreeViewSidebarPage::loadTree(const KUrl& url) Q_ASSERT(m_dirLister != 0); m_leafDir = url; - KUrl baseUrl = url; + KUrl baseUrl; 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.setPath(QString()); + baseUrl.setPath(QString('/')); } if (m_dirLister->url() != baseUrl) {