diff options
Diffstat (limited to 'src/klistview.cpp')
| -rw-r--r-- | src/klistview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
