diff options
| author | David Faure <[email protected]> | 2008-12-24 11:45:09 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-12-24 11:45:09 +0000 |
| commit | 818864ec483a68896ba1eb5abd537c5ccc11cefd (patch) | |
| tree | 2ab43e58c63a698fe5b007889f0b2d508a1bc18f /src | |
| parent | 86ee6dbd07b42789676b8e7eee097104a93e8d54 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/treeviewsidebarpage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |
