diff options
-rw-r--r-- | common/modelresult.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp index add84aa..d016978 100644 --- a/common/modelresult.cpp +++ b/common/modelresult.cpp | |||
@@ -154,7 +154,8 @@ bool ModelResult<T, Ptr>::hasChildren(const QModelIndex &parent) const | |||
154 | return false; | 154 | return false; |
155 | } | 155 | } |
156 | //Figure out whether we have children | 156 | //Figure out whether we have children |
157 | if (canFetchMore(parent)) { | 157 | const auto id = parent.internalId(); |
158 | if (!mEntityChildrenFetched.contains(id)) { | ||
158 | //Since we don't retrieve that information as part of the entity, | 159 | //Since we don't retrieve that information as part of the entity, |
159 | //we have to query for the children to see if we have some | 160 | //we have to query for the children to see if we have some |
160 | auto p = const_cast<ModelResult<T, Ptr>*>(this); | 161 | auto p = const_cast<ModelResult<T, Ptr>*>(this); |