┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-08-26 08:08:11 +0200
committerPeter Penz <[email protected]>2011-08-26 08:09:50 +0200
commit26648a0264ad726682901b2f9c9b5bd92dedb782 (patch)
tree085614d7562d8cdb90f5976392727f1dd756fb5f /src/kitemviews/kfileitemmodel.cpp
parenta14d8bf655917dcf806e22bdfafb03a35f5c8680 (diff)
Fix issue that removing an item is not recognized
Thanks to Tirtha Chatterjee for the patch! REVIEW: 102435
Diffstat (limited to 'src/kitemviews/kfileitemmodel.cpp')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index 189aa75e0..f36ab8380 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -517,7 +517,7 @@ void KFileItemModel::removeItems(const KFileItemList& items)
foreach (const KFileItem& itemToRemove, sortedItems) {
const int previousTargetIndex = targetIndex;
while (targetIndex < m_sortedItems.count()) {
- if (m_sortedItems.at(targetIndex) == itemToRemove) {
+ if (m_sortedItems.at(targetIndex).url() == itemToRemove.url()) {
break;
}
++targetIndex;