mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +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
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue