minor simplification

svn path=/trunk/KDE/kdebase/apps/; revision=707771
This commit is contained in:
Peter Penz 2007-09-02 21:40:18 +00:00
parent f057d8115b
commit 6ee09d40e3

View file

@ -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);
}