┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-04-16 20:19:05 +0000
committerPeter Penz <[email protected]>2007-04-16 20:19:05 +0000
commitc4a6805856ff5b738eeeb8a21f3b9f3247690843 (patch)
treed7f70c6054d87b8229b9ba83e7487ea73aea5f6c /src/dolphinview.cpp
parentc0ec582ae7250335f3995af159a6106dfde271f7 (diff)
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
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp8
1 files changed, 8 insertions, 0 deletions
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);