From 85e0112c3d17df526093d9ccabaea2a31d3e172a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 19 Jun 2007 17:23:14 +0000 Subject: [PATCH] provide temporary (?) fix for a crash that occurs if the categorization is turned off and a switch is done from another view mode CCMAIL: ereslibre@gmail.com svn path=/trunk/KDE/kdebase/apps/; revision=677667 --- src/klistview.cpp | 6 +++--- 1 file 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); } } -- 2.47.3