]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix the reproducible problem after the fix:
authorRafael Fernández López <ereslibre@kde.org>
Tue, 25 Sep 2007 22:56:20 +0000 (22:56 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Tue, 25 Sep 2007 22:56:20 +0000 (22:56 +0000)
- 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

index e790a051830ea9acc4a11107a3fc7fa5dd99c00b..e0a3df51e6ebc4251d5206f1261205bd2a3e71ef 100644 (file)
@@ -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);