]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewsidebarpage.cpp
* changed "Click to add comment..." to simply "Add comment..." for consistency with...
[dolphin.git] / src / treeviewsidebarpage.cpp
index 7756c227cc263dbea2b5a9312a35de8d141f6100..d84b72ae24a66ce3e69e126e041d0639199dec2f 100644 (file)
@@ -90,7 +90,7 @@ void TreeViewSidebarPage::showEvent(QShowEvent* event)
         m_dirLister = new KDirLister();
         m_dirLister->setDirOnlyMode(true);
         m_dirLister->setAutoUpdate(true);
-        m_dirLister->setMainWindow(topLevelWidget());
+        m_dirLister->setMainWindow(window());
         m_dirLister->setDelayedMimeTypes(true);
         m_dirLister->setAutoErrorHandlingEnabled(false, this);
 
@@ -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;