]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Sort the items in DolphinView::selectedItems(), part 2
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 16 Oct 2011 18:45:10 +0000 (20:45 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 16 Oct 2011 18:45:10 +0000 (20:45 +0200)
I forgot this change in the last commit.
CCBUG:283409

src/views/dolphinview.cpp

index 122c18de785ad13df17b9bed3dd689d1c8fd1003..5ff3cb26d70168e294bd44096287f537a92d96fc 100644 (file)
@@ -343,7 +343,7 @@ KFileItemList DolphinView::selectedItems() const
     qSort(sortedIndexes);
 
     KFileItemList selectedItems;
-    QSetIterator<int> it(selectedIndexes);
+    QListIterator<int> it(sortedIndexes);
     while (it.hasNext()) {
         const int index = it.next();
         selectedItems.append(model->fileItem(index));