diff options
| author | Peter Penz <[email protected]> | 2007-07-29 14:44:00 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-07-29 14:44:00 +0000 |
| commit | 4ad6cc3e3d5b2c4a6dc0736b8219c2814ac11465 (patch) | |
| tree | 0e0dfd3cd8653bcfeaa1288e0783a6fb13ce0ec1 /src/dolphinview.cpp | |
| parent | 3b9570b01b0fca4f4db4ac77bcb070193bcc3f68 (diff) | |
when activating the columns inside a column view, the current view properties must get synchronized
svn path=/trunk/KDE/kdebase/apps/; revision=693930
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 876e037f5..0799ae8b9 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -424,15 +424,21 @@ void DolphinView::refresh() void DolphinView::setUrl(const KUrl& url) { if (m_controller->url() == url) { - return; - } - - m_controller->setUrl(url); + // Although the view URL is equal to the controller URL, + // the view properties must be applied to the view. + // This assures a consistent state of the currently activated + // column and their view properties. + if (isColumnViewActive()) { + applyViewProperties(url); + } + } else { + m_controller->setUrl(url); - applyViewProperties(url); + applyViewProperties(url); - startDirLister(url); - emit urlChanged(url); + startDirLister(url); + emit urlChanged(url); + } } void DolphinView::mouseReleaseEvent(QMouseEvent* event) |
