diff options
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 8de45a9..53db82f 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -197,7 +197,9 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
197 | if (!found) { | 197 | if (!found) { |
198 | if (!mergeCriteria.isEmpty()) { | 198 | if (!mergeCriteria.isEmpty()) { |
199 | Sink::Query query; | 199 | Sink::Query query; |
200 | query.propertyFilter = mergeCriteria; | 200 | for (auto it = mergeCriteria.constBegin(); it != mergeCriteria.constEnd(); it++) { |
201 | query.filter(it.key(), it.value()); | ||
202 | } | ||
201 | bool merge = false; | 203 | bool merge = false; |
202 | Sink::EntityReader<DomainType> reader(mResourceType, mResourceInstanceIdentifier, transaction()); | 204 | Sink::EntityReader<DomainType> reader(mResourceType, mResourceInstanceIdentifier, transaction()); |
203 | reader.query(query, | 205 | reader.query(query, |