summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/modelresult.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp
index 495eca0..57f5ce8 100644
--- a/common/modelresult.cpp
+++ b/common/modelresult.cpp
@@ -340,6 +340,9 @@ template <class T, class Ptr>
340void ModelResult<T, Ptr>::remove(const Ptr &value) 340void ModelResult<T, Ptr>::remove(const Ptr &value)
341{ 341{
342 auto childId = qHash(*value); 342 auto childId = qHash(*value);
343 if (!mEntities.contains(childId)) {
344 return;
345 }
343 //The removed entity will have no properties, but we at least need the parent property. 346 //The removed entity will have no properties, but we at least need the parent property.
344 auto actualEntity = mEntities.value(childId); 347 auto actualEntity = mEntities.value(childId);
345 auto id = parentId(actualEntity); 348 auto id = parentId(actualEntity);