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
This commit is contained in:
Rafael Fernández López 2007-09-25 22:56:20 +00:00
parent ccea74a99a
commit 8ff20f6519

View 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);