diff options
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp index b9c6ccd29..8f3ddceed 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.cpp +++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp @@ -943,7 +943,9 @@ void KFileItemModelRolesUpdater::updateChangedItems() QList<int> visibleChangedIndexes; QList<int> invisibleChangedIndexes; - for (const KFileItem& item : qAsConst(m_changedItems)) { + QMutableSetIterator<KFileItem> it(m_changedItems); + while (it.hasNext()) { + const KFileItem item = it.next(); const int index = m_model->index(item); if (index < 0) { |
