When KFileItems get removed from the model it is temporary possible
that the pending items are still part of the KFileItemModelRolesUpdater
while they have already been removed from the model (this happens
in the context during the signal itemsRemoved() gets emitted).
BUG: 287642
while (it.hasNext()) {
const KFileItem item = it.next();
const int index = m_model->index(item);
while (it.hasNext()) {
const KFileItem item = it.next();
const int index = m_model->index(item);
+ if (index >= 0) {
+ indexes.append(index);
+ }