]> cloud.milkyroute.net Git - dolphin.git/commitdiff
when switching from the column view to the details- or icons-view it makes sense...
authorPeter Penz <peter.penz19@gmail.com>
Mon, 16 Apr 2007 20:19:05 +0000 (20:19 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 16 Apr 2007 20:19:05 +0000 (20:19 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=654718

src/dolphinview.cpp

index 5dc0c0e16c761fe22fc1d203c2d9538b0902cb8b..e06bc72f279c784aff3d27f28419f9aec04d428c 100644 (file)
@@ -205,6 +205,14 @@ 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.
+        setUrl(m_dirLister->url());
+    }
+
     ViewProperties props(m_urlNavigator->url());
     props.setViewMode(m_mode);