diff options
| author | Frank Reininghaus <[email protected]> | 2013-06-06 10:00:47 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-06-06 10:00:47 +0200 |
| commit | 39c7c343cffcb540491c70a7db82983be83e6b26 (patch) | |
| tree | 94fc1ca6de4375ef8ccb331c178d177afd43a736 | |
| parent | f11456452333df76e80f8db49ed4da91e6cc9b32 (diff) | |
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
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
