]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Column-View: When switching to another view-mode, just switch the view for the curren...
authorPeter Penz <peter.penz19@gmail.com>
Sun, 27 Jan 2008 14:54:45 +0000 (14:54 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 27 Jan 2008 14:54:45 +0000 (14:54 +0000)
CCMAIL: aurelien.gateau@free.fr

svn path=/trunk/KDE/kdebase/apps/; revision=767205

src/dolphinview.cpp

index a424bcbb509847aca6a9b9f02c7f93ce3d0135bf..b16a61e1b8fe3133250e581a5639b90fc2d5eba3 100644 (file)
@@ -185,16 +185,6 @@ void DolphinView::setMode(Mode mode)
 
     m_mode = mode;
 
-    if (isColumnViewActive()) {
-        // When changing the mode in the column view, it makes sense
-        // 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.
-        const KUrl root = rootUrl();
-        setUrl(root);
-        m_controller->setUrl(root);
-    }
-
     deleteView();
 
     const KUrl viewPropsUrl = viewPropertiesUrl();