mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
minor simplification
svn path=/trunk/KDE/kdebase/apps/; revision=707771
This commit is contained in:
parent
f057d8115b
commit
6ee09d40e3
1 changed files with 2 additions and 5 deletions
|
@ -302,11 +302,8 @@ QList<KFileItem> DolphinView::selectedItems() const
|
|||
QList<KFileItem> itemList;
|
||||
|
||||
const QModelIndexList indexList = selection.indexes();
|
||||
QModelIndexList::const_iterator end = indexList.end();
|
||||
for (QModelIndexList::const_iterator it = indexList.begin(); it != end; ++it) {
|
||||
Q_ASSERT((*it).isValid());
|
||||
|
||||
KFileItem item = m_dirModel->itemForIndex(*it);
|
||||
foreach (QModelIndex index, indexList) {
|
||||
KFileItem item = m_dirModel->itemForIndex(index);
|
||||
if (!item.isNull()) {
|
||||
itemList.append(item);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue