From: Frank Reininghaus Date: Thu, 6 Jun 2013 08:00:47 +0000 (+0200) Subject: Ignore a changed item if it cannot be found in the model X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/39c7c343cffcb540491c70a7db82983be83e6b26?ds=sidebyside 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 --- 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; }