diff options
| -rw-r--r-- | src/klistview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/klistview.cpp b/src/klistview.cpp index acdc70220..1cba47b1b 100644 --- a/src/klistview.cpp +++ b/src/klistview.cpp @@ -846,10 +846,10 @@ void KListView::rowsInsertedArtifficial(const QModelIndex &parent, } // Add all elements mapped to the source model - for (int i = 0; i < d->proxyModel->rowCount(); i++) + for (int k = 0; k < d->proxyModel->rowCount(); k++) { d->sourceModelIndexList << - d->proxyModel->mapToSource(d->proxyModel->index(i, 0)); + d->proxyModel->mapToSource(d->proxyModel->index(k, 0)); } // Sort them with the general purpose lessThan method |
