diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-13 23:31:41 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-13 23:31:41 +0100 |
commit | 75c231f0758603120ec562af772b48b5f6ac0e24 (patch) | |
tree | 39abf8f038bd379ee3c0640a7476e6129ed71f8c /common/modelresult.h | |
parent | 09aafbd1373b5d1152ac7a453a140a7f76c2e90e (diff) | |
download | sink-75c231f0758603120ec562af772b48b5f6ac0e24.tar.gz sink-75c231f0758603120ec562af772b48b5f6ac0e24.zip |
DummyResourceTest and QueryTest are passing
sync has been removed from the query code and is now a separate step
Diffstat (limited to 'common/modelresult.h')
-rw-r--r-- | common/modelresult.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/modelresult.h b/common/modelresult.h index 756f4d6..eabb868 100644 --- a/common/modelresult.h +++ b/common/modelresult.h | |||
@@ -111,6 +111,10 @@ public: | |||
111 | { | 111 | { |
112 | auto childId = qHash(value->identifier()); | 112 | auto childId = qHash(value->identifier()); |
113 | auto id = parentId(value); | 113 | auto id = parentId(value); |
114 | //Ignore updates we get before the initial fetch is done | ||
115 | if (!mEntityChildrenFetched[id]) { | ||
116 | return; | ||
117 | } | ||
114 | auto parent = createIndexFromId(id); | 118 | auto parent = createIndexFromId(id); |
115 | qDebug() << "Added entity " << childId; | 119 | qDebug() << "Added entity " << childId; |
116 | const auto keys = mTree[id]; | 120 | const auto keys = mTree[id]; |
@@ -131,6 +135,10 @@ public: | |||
131 | { | 135 | { |
132 | auto childId = qHash(value->identifier()); | 136 | auto childId = qHash(value->identifier()); |
133 | auto id = parentId(value); | 137 | auto id = parentId(value); |
138 | //Ignore updates we get before the initial fetch is done | ||
139 | if (!mEntityChildrenFetched[id]) { | ||
140 | return; | ||
141 | } | ||
134 | auto parent = createIndexFromId(id); | 142 | auto parent = createIndexFromId(id); |
135 | qDebug() << "Modified entity" << childId; | 143 | qDebug() << "Modified entity" << childId; |
136 | auto i = mTree[id].indexOf(childId); | 144 | auto i = mTree[id].indexOf(childId); |