mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
85e0112c3d
commit
41d6071059
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue