From 4ad6cc3e3d5b2c4a6dc0736b8219c2814ac11465 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 29 Jul 2007 14:44:00 +0000 Subject: [PATCH] when activating the columns inside a column view, the current view properties must get synchronized svn path=/trunk/KDE/kdebase/apps/; revision=693930 --- src/dolphinview.cpp | 20 +++++++++++++------- 1 file 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) -- 2.47.3