From 39c7c343cffcb540491c70a7db82983be83e6b26 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 6 Jun 2013 10:00:47 +0200 Subject: [PATCH] Ignore a changed item if it cannot be found in the model This prevents repeated attempts to reload the data for the non-existing item. This was the root cause of bug 320791. Thanks to Hrvoje Senjan and Jekyll Wu for testing the new code and finding this bug! BUG: 320791 --- src/kitemviews/kfileitemmodelrolesupdater.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp index 9bc288df1..b157a0183 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.cpp +++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp @@ -1015,6 +1015,7 @@ void KFileItemModelRolesUpdater::updateChangedItems() const int index = m_model->index(item); if (index < 0) { + m_changedItems.remove(item); continue; } -- 2.47.3