summaryrefslogtreecommitdiffstats
path: root/common/storage
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage')
-rw-r--r--common/storage/entitystore.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp
index 18c788a..c5b5ffc 100644
--- a/common/storage/entitystore.cpp
+++ b/common/storage/entitystore.cpp
@@ -283,8 +283,7 @@ bool EntityStore::modify(const QByteArray &type, const ApplicationDomainType &cu
283{ 283{
284 SinkTraceCtx(d->logCtx) << "Modified entity: " << newEntity; 284 SinkTraceCtx(d->logCtx) << "Modified entity: " << newEntity;
285 285
286 d->typeIndex(type).remove(current.identifier(), current, d->transaction, d->resourceContext.instanceId()); 286 d->typeIndex(type).modify(newEntity.identifier(), current, newEntity, d->transaction, d->resourceContext.instanceId());
287 d->typeIndex(type).add(newEntity.identifier(), newEntity, d->transaction, d->resourceContext.instanceId());
288 287
289 const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1; 288 const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1;
290 289