┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/klistview.cpp
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-06-26 19:52:45 +0000
committerRafael Fernández López <[email protected]>2007-06-26 19:52:45 +0000
commita6132b67fde462a5c9b15461420c0c4a6582bb3f (patch)
tree4d807e2aea17a6b90801707b359450dbd5d3d5e3 /src/klistview.cpp
parentd1aa2eb18029419e280942e91b665438c74c5a1d (diff)
Improve behavior when changes are detected on the model.
svn path=/trunk/KDE/kdebase/apps/; revision=680643
Diffstat (limited to 'src/klistview.cpp')
-rw-r--r--src/klistview.cpp4
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);