Replace QModelIndex child() with index()

This commit is contained in:
Jonas Kvinge
2019-07-08 22:23:15 +02:00
parent cc3d454d60
commit beeba88ea5
2 changed files with 3 additions and 4 deletions

View File

@@ -371,7 +371,7 @@ void PlaylistListContainer::RecursivelyFindPlaylists(const QModelIndex &parent,
case PlaylistListModel::Type_Folder:
for (int i = 0; i < parent.model()->rowCount(parent); ++i) {
RecursivelyFindPlaylists(parent.child(i, 0), ids);
RecursivelyFindPlaylists(proxy_->index(i, 0, parent), ids);
}
break;
}