┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 5dc0c0e16..e06bc72f2 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -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);