From: Rafael Fernández López Date: Tue, 26 Jun 2007 19:52:45 +0000 (+0000) Subject: Improve behavior when changes are detected on the model. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a6132b67fde462a5c9b15461420c0c4a6582bb3f Improve behavior when changes are detected on the model. svn path=/trunk/KDE/kdebase/apps/; revision=680643 --- diff --git a/src/klistview.cpp b/src/klistview.cpp index 1971d7f98..e6ffdc1e0 100644 --- a/src/klistview.cpp +++ b/src/klistview.cpp @@ -948,6 +948,7 @@ void KListView::rowsInsertedArtifficial(const QModelIndex &parent, int start, int end) { + d->lastSelection = QItemSelection(); d->elementsInfo.clear(); d->elementsPosition.clear(); d->elementDictionary.clear(); @@ -1052,7 +1053,8 @@ void KListView::rowsRemoved(const QModelIndex &parent, int start, int end) { - if (d->proxyModel) + if ((viewMode() == KListView::IconMode) && d->proxyModel && + d->itemCategorizer) { // Force the view to update all elements rowsInsertedArtifficial(parent, start, end);