summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/modelresult.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp
index 1abcc62..5b9e24f 100644
--- a/common/modelresult.cpp
+++ b/common/modelresult.cpp
@@ -104,7 +104,7 @@ template<class T, class Ptr>
104bool ModelResult<T, Ptr>::canFetchMore(const QModelIndex &parent) const 104bool ModelResult<T, Ptr>::canFetchMore(const QModelIndex &parent) const
105{ 105{
106 qDebug() << "Can fetch more: " << parent << mEntityChildrenFetched.value(parent.internalId()); 106 qDebug() << "Can fetch more: " << parent << mEntityChildrenFetched.value(parent.internalId());
107 return mEntityChildrenFetched.value(parent.internalId()); 107 return !mEntityChildrenFetched.value(parent.internalId(), false);
108} 108}
109 109
110template<class T, class Ptr> 110template<class T, class Ptr>
@@ -133,7 +133,7 @@ void ModelResult<T, Ptr>::add(const Ptr &value)
133 } 133 }
134 } 134 }
135 if (mEntities.contains(childId)) { 135 if (mEntities.contains(childId)) {
136 qWarning() << "Entity already in model " << value->identifier(); 136 Warning() << "Entity already in model " << value->identifier();
137 return; 137 return;
138 } 138 }
139 qDebug() << "Inserting rows " << index << parent; 139 qDebug() << "Inserting rows " << index << parent;