1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-05 12:56:52 +01:00

Use QModelIndex::model()

This commit is contained in:
Jonas Kvinge 2020-01-05 23:25:23 +01:00
parent 0bdac2e97d
commit b5a7945e49

View File

@ -312,7 +312,7 @@ void InternetSearchModel::GetChildResults(const QStandardItem *item, InternetSea
// Yes - visit all the children, but do so through the proxy so we get them in the right order.
for (int i = 0; i < item->rowCount(); ++i) {
const QModelIndex proxy_index = proxy_->index(i, 0, parent_proxy_index);
const QModelIndex proxy_index = parent_proxy_index.model()->index(i, 0, parent_proxy_index);
const QModelIndex index = proxy_->mapToSource(proxy_index);
GetChildResults(itemFromIndex(index), results, visited);
}