Use reference

This commit is contained in:
Jonas Kvinge 2020-11-13 20:34:29 +01:00
parent 7ffa51b83d
commit c0663bc19f
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ void PlaylistListContainer::Delete() {
QSet<int> ids;
QList<QPersistentModelIndex> folders_to_delete;
for (const QModelIndex proxy_index : ui_->tree->selectionModel()->selectedRows()) {
for (const QModelIndex &proxy_index : ui_->tree->selectionModel()->selectedRows()) {
const QModelIndex idx = proxy_->mapToSource(proxy_index);
// Is it a playlist?