Commit 9fea47a9 authored by Rafael Fernández López's avatar Rafael Fernández López
Browse files

Fix the problem of the crash related to commit 677667, taking in count we are...

Fix the problem of the crash related to commit 677667, taking in count we are in IconMode, not in a mode 
different than ListMode. Fix some comments.

svn path=/trunk/KDE/kdebase/apps/; revision=677668
parent e4f41206
......@@ -40,4 +40,4 @@ public:
virtual QString categoryForItem(const QModelIndex &index, int sortRole) = 0;
};
#endif
#endif // KITEMCATEGORIZER_H
......@@ -956,7 +956,7 @@ void KListView::updateGeometries()
void KListView::slotSortingRoleChanged()
{
if ((viewMode() != KListView::ListMode) && d->proxyModel &&
if ((viewMode() == KListView::IconMode) && d->proxyModel &&
d->itemCategorizer)
{
// Force the view to update all elements
......
......@@ -89,4 +89,4 @@ private:
Private *d;
};
#endif // __KLISTVIEW_H__
#endif // KLISTVIEW_H
......@@ -135,4 +135,4 @@ public:
QModelIndex lastIndex;
};
#endif // __KLISTVIEW_P_H__
#endif // KLISTVIEW_P_H
......@@ -51,4 +51,4 @@ private:
Qt::SortOrder m_sortOrder;
};
#endif
#endif // KSORTFILTERPROXYMODEL_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment