summaryrefslogtreecommitdiffstats
path: root/common/modelresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/modelresult.cpp')
-rw-r--r--common/modelresult.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp
index b738a05..695072c 100644
--- a/common/modelresult.cpp
+++ b/common/modelresult.cpp
@@ -260,6 +260,7 @@ void ModelResult<T, Ptr>::setEmitter(const typename Sink::ResultEmitter<Ptr>::Pt
260 setFetcher([this](const Ptr &parent) { mEmitter->fetch(parent); }); 260 setFetcher([this](const Ptr &parent) { mEmitter->fetch(parent); });
261 261
262 emitter->onAdded([this](const Ptr &value) { 262 emitter->onAdded([this](const Ptr &value) {
263 SinkTraceCtx(mLogCtx) << "Received addition: " << value->identifier();
263 threadBoundary.callInMainThread([this, value]() { 264 threadBoundary.callInMainThread([this, value]() {
264 add(value); 265 add(value);
265 }); 266 });
@@ -271,6 +272,7 @@ void ModelResult<T, Ptr>::setEmitter(const typename Sink::ResultEmitter<Ptr>::Pt
271 }); 272 });
272 }); 273 });
273 emitter->onRemoved([this](const Ptr &value) { 274 emitter->onRemoved([this](const Ptr &value) {
275 SinkTraceCtx(mLogCtx) << "Received removal: " << value->identifier();
274 threadBoundary.callInMainThread([this, value]() { 276 threadBoundary.callInMainThread([this, value]() {
275 remove(value); 277 remove(value);
276 }); 278 });
@@ -310,7 +312,7 @@ void ModelResult<T, Ptr>::modify(const Ptr &value)
310 return; 312 return;
311 } 313 }
312 auto parent = createIndexFromId(id); 314 auto parent = createIndexFromId(id);
313 SinkTraceCtx(mLogCtx) << "Modified entity" << childId; 315 SinkTraceCtx(mLogCtx) << "Modified entity:" << value->identifier() << ", id: " << childId;
314 auto i = mTree[id].indexOf(childId); 316 auto i = mTree[id].indexOf(childId);
315 Q_ASSERT(i >= 0); 317 Q_ASSERT(i >= 0);
316 mEntities.remove(childId); 318 mEntities.remove(childId);