From: Peter Penz Date: Mon, 16 Apr 2007 20:19:05 +0000 (+0000) Subject: when switching from the column view to the details- or icons-view it makes sense... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c4a6805856ff5b738eeeb8a21f3b9f3247690843 when switching from the column view to the details- or icons-view it makes sense to adjust the URL automatically to the root URL of the column view svn path=/trunk/KDE/kdebase/apps/; revision=654718 --- 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);