diff options
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); |