┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-19 17:23:14 +0000
committerPeter Penz <[email protected]>2007-06-19 17:23:14 +0000
commit85e0112c3d17df526093d9ccabaea2a31d3e172a (patch)
tree97de8f06a3c3efc038ea9b05975603b71901cce2
parent740b3b0ca4a39e3df96e6a305163cf5d93061d02 (diff)
provide temporary (?) fix for a crash that occurs if the categorization is turned off and a switch is done from another view mode
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=677667
-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);
}
}