mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
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:
parent
c0ec582ae7
commit
c4a6805856
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue