diff options
| author | Frank Reininghaus <[email protected]> | 2012-12-27 22:08:16 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-12-27 22:08:16 +0100 |
| commit | 36a816d7a63c58ead01002db59c2cf8862c72c97 (patch) | |
| tree | a26c88eb96e1e0237f3e31a1717179e1c992cd31 /src/views/dolphinview.cpp | |
| parent | 33c5fb301b4032d8122274889c157bc43713fa15 (diff) | |
| parent | 6d748107999a9ee8da52770c7fdd1726dfd4f6f0 (diff) | |
Merge remote-tracking branch 'origin/KDE/4.9' into KDE/4.10
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 941083fde..f0fad1976 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -343,10 +343,12 @@ int DolphinView::itemsCount() const KFileItemList DolphinView::selectedItems() const { const KItemListSelectionManager* selectionManager = m_container->controller()->selectionManager(); - const QSet<int> selectedIndexes = selectionManager->selectedItems(); + QList<int> selectedIndexes = selectionManager->selectedItems().toList(); + + qSort(selectedIndexes); KFileItemList selectedItems; - QSetIterator<int> it(selectedIndexes); + QListIterator<int> it(selectedIndexes); while (it.hasNext()) { const int index = it.next(); selectedItems.append(m_model->fileItem(index)); |
