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
This commit is contained in:
Peter Penz 2007-04-16 20:19:05 +00:00
parent c0ec582ae7
commit c4a6805856

View file

@ -205,6 +205,14 @@ void DolphinView::setMode(Mode mode)
m_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()); ViewProperties props(m_urlNavigator->url());
props.setViewMode(m_mode); props.setViewMode(m_mode);