]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Ignore a changed item if it cannot be found in the model
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 6 Jun 2013 08:00:47 +0000 (10:00 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 6 Jun 2013 08:00:47 +0000 (10:00 +0200)
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

index 9bc288df1a016fa56e4d43fc4a99f3873b632cf5..b157a018370b95df6bec2955eacc79d2238baa67 100644 (file)
@@ -1015,6 +1015,7 @@ void KFileItemModelRolesUpdater::updateChangedItems()
         const int index = m_model->index(item);
 
         if (index < 0) {
+            m_changedItems.remove(item);
             continue;
         }