Commit 1a4a450f authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

EntityTreeModel: fix to call private canFetchMore() everywhere

d33cab08 changed the public
EntityTreeModel::canFetchMore() to always tell the view which is using
the public API there is nothing more to fetch. But it missed to adapt
the call in EntityTreeModel::hasChildren() which now also should call
the internal variant.
parent 2619e897
Pipeline #89392 canceled with stage
......@@ -845,7 +845,7 @@ bool EntityTreeModel::hasChildren(const QModelIndex &parent) const
// There is probably no way to tell if a collection
// has child items in akonadi without first attempting an itemFetchJob...
// Figure out a way to fix this. (Statistics)
return ((rowCount(parent) > 0) || (canFetchMore(parent) && d->m_itemPopulation == LazyPopulation));
return ((rowCount(parent) > 0) || (d->canFetchMore(parent) && d->m_itemPopulation == LazyPopulation));
}
bool EntityTreeModel::isCollectionTreeFetched() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment