┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/klistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/klistview.cpp b/src/klistview.cpp
index 9be5dadd8..15c8b576a 100644
--- a/src/klistview.cpp
+++ b/src/klistview.cpp
@@ -956,11 +956,11 @@ void KListView::updateGeometries()
void KListView::slotSortingRoleChanged()
{
- if (d->proxyModel)
+ if ((viewMode() != KListView::ListMode) && d->proxyModel &&
+ d->itemCategorizer)
{
// Force the view to update all elements
- rowsInsertedArtifficial(QModelIndex(), 0, d->proxyModel->rowCount() -
- 1);
+ rowsInsertedArtifficial(QModelIndex(), 0, d->proxyModel->rowCount() - 1);
}
}