From 8ff20f651936ee19b20902b90b7d452450f4e2c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 25 Sep 2007 22:56:20 +0000 Subject: [PATCH] Fix the reproducible problem after the fix: - On the icon view, enable categorization - Switch to details view - Go back to the icon view. The categorization has been disabled for the details view to sort correctly. This fixes this problem :) CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=717051 --- src/dolphinview.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index e790a0518..e0a3df51e 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -804,11 +804,16 @@ void DolphinView::createView() // ... and recreate it representing the current mode switch (m_mode) { - case IconsView: + case IconsView: { + const KUrl viewPropsUrl = viewPropertiesUrl(); + const ViewProperties props(viewPropsUrl); + m_iconsView = new DolphinIconsView(this, m_controller); m_iconsView->setCategoryDrawer(new DolphinCategoryDrawer()); view = m_iconsView; + setCategorizedSorting(props.categorizedSorting()); break; + } case DetailsView: m_detailsView = new DolphinDetailsView(this, m_controller); -- 2.47.3