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
This commit is contained in:
Rafael Fernández López 2007-06-19 17:26:09 +00:00
parent 85e0112c3d
commit 41d6071059
5 changed files with 5 additions and 5 deletions

View file

@ -40,4 +40,4 @@ public:
virtual QString categoryForItem(const QModelIndex &index, int sortRole) = 0;
};
#endif
#endif // KITEMCATEGORIZER_H

View file

@ -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

View file

@ -89,4 +89,4 @@ private:
Private *d;
};
#endif // __KLISTVIEW_H__
#endif // KLISTVIEW_H

View file

@ -135,4 +135,4 @@ public:
QModelIndex lastIndex;
};
#endif // __KLISTVIEW_P_H__
#endif // KLISTVIEW_P_H

View file

@ -51,4 +51,4 @@ private:
Qt::SortOrder m_sortOrder;
};
#endif
#endif // KSORTFILTERPROXYMODEL_H