X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/4946ffd8387a8139ebf8fae64f6215cdbe3856c2..da3bc09d21b43837873c899e2fbda1fa6c2a2e5e:/src/dolphinview.cpp 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);