From: Peter Penz Date: Tue, 19 Jun 2007 17:23:14 +0000 (+0000) Subject: provide temporary (?) fix for a crash that occurs if the categorization is turned... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/85e0112c3d17df526093d9ccabaea2a31d3e172a 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 --- 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); } }