┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-09-25 22:56:20 +0000
committerRafael Fernández López <[email protected]>2007-09-25 22:56:20 +0000
commit8ff20f651936ee19b20902b90b7d452450f4e2c3 (patch)
tree21300873b1cb370896d65cac22c0ee0fd570a3bb
parentccea74a99aefcb2c69db4d8307a4bb8b398ed90d (diff)
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=717051
-rw-r--r--src/dolphinview.cpp7
1 files changed, 6 insertions, 1 deletions
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);