m_treeView->setModel(m_proxyModel);
m_proxyModel->setSorting(DolphinView::SortByName);
m_proxyModel->setSortOrder(Qt::AscendingOrder);
-
+
new FolderExpander(m_treeView, m_proxyModel);
connect(m_treeView, SIGNAL(clicked(const QModelIndex&)),
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) {