diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 11:25:49 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 11:25:49 +0200 |
commit | 577c2c344079c1a87d3d93be5f957e5f2d935bff (patch) | |
tree | d158857f9a832649e1c0b498b768a30d614fc613 /common/synchronizer.cpp | |
parent | fd532607ef29aac49b52c861e5aecda6dfa19e82 (diff) | |
download | sink-577c2c344079c1a87d3d93be5f957e5f2d935bff.tar.gz sink-577c2c344079c1a87d3d93be5f957e5f2d935bff.zip |
Don't access the propertyFilter list directly.
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, |