Commit e4f41206 authored by Peter Penz's avatar Peter Penz
Browse files

provide temporary (?) fix for a crash that occurs if the categorization is...

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
parent 6763aa0f
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment