]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't use the directory lister directly
authorPeter Penz <peter.penz19@gmail.com>
Sat, 6 Oct 2007 18:10:26 +0000 (18:10 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 6 Oct 2007 18:10:26 +0000 (18:10 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=722142

src/dolphinview.cpp

index 7311b30745e564093d42af2f8f3d562b5b123907..75c1ee01c15f410297836079b67122569f4b44f1 100644 (file)
@@ -159,8 +159,9 @@ void DolphinView::setMode(Mode mode)
         // to go back to the root URL of the column view automatically.
         // Otherwise there it would not be possible to turn off the column view
         // without focusing the first column.
-        setUrl(m_dirLister->url());
-        m_controller->setUrl(m_dirLister->url());
+        const KUrl root = rootUrl();
+        setUrl(root);
+        m_controller->setUrl(root);
     }
 
     const KUrl viewPropsUrl = viewPropertiesUrl();