Fix index in InternetSearchModel
This commit is contained in:
@@ -292,7 +292,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.
|
// 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) {
|
for (int i = 0; i < item->rowCount(); ++i) {
|
||||||
const QModelIndex proxy_index = index(i, 0, parent_proxy_index);
|
const QModelIndex proxy_index = proxy_->index(i, 0, parent_proxy_index);
|
||||||
const QModelIndex index = proxy_->mapToSource(proxy_index);
|
const QModelIndex index = proxy_->mapToSource(proxy_index);
|
||||||
GetChildResults(itemFromIndex(index), results, visited);
|
GetChildResults(itemFromIndex(index), results, visited);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user