diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index d174cf67fd..1b4911dece 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -702,7 +702,7 @@ void KFileItemModel::resortAllItems() QList movedToIndexes; movedToIndexes.reserve(itemCount); for (int i = 0; i < itemCount; i++) { - const int newIndex = m_items.value(oldUrls.at(i).url()); + const int newIndex = m_items.value(oldUrls.at(i)); movedToIndexes.append(newIndex); }