diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-13 09:11:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-13 09:11:37 +0200 |
commit | 1e2e4437094d80f1cdd849c7341019910fc29fb1 (patch) | |
tree | 5f75e3dab8da864eab8a51c06be205a24e185dcb /common/synchronizer.cpp | |
parent | 3fa1766af3fa85067d4b2d48c8410e6c201ae323 (diff) | |
download | sink-1e2e4437094d80f1cdd849c7341019910fc29fb1.tar.gz sink-1e2e4437094d80f1cdd849c7341019910fc29fb1.zip |
Get folder moves to work, and fix the mime message moving.
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index b127ec5..46712b5 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -139,6 +139,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
139 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); | 139 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); |
140 | const auto found = mainDatabase.contains(sinkId); | 140 | const auto found = mainDatabase.contains(sinkId); |
141 | auto adaptorFactory = Sink::AdaptorFactoryRegistry::instance().getFactory(mResourceType, bufferType); | 141 | auto adaptorFactory = Sink::AdaptorFactoryRegistry::instance().getFactory(mResourceType, bufferType); |
142 | Q_ASSERT(adaptorFactory); | ||
142 | if (!found) { | 143 | if (!found) { |
143 | Trace() << "Found a new entity: " << remoteId; | 144 | Trace() << "Found a new entity: " << remoteId; |
144 | createEntity( | 145 | createEntity( |
@@ -178,7 +179,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
178 | Sink::Query query; | 179 | Sink::Query query; |
179 | query.propertyFilter = mergeCriteria; | 180 | query.propertyFilter = mergeCriteria; |
180 | bool merge = false; | 181 | bool merge = false; |
181 | Sink::EntityReader<DomainType> reader(mResourceInstanceIdentifier, mResourceType, transaction()); | 182 | Sink::EntityReader<DomainType> reader(mResourceType, mResourceInstanceIdentifier, transaction()); |
182 | reader.query(query, | 183 | reader.query(query, |
183 | [this, bufferType, remoteId, &merge](const DomainType &o) -> bool{ | 184 | [this, bufferType, remoteId, &merge](const DomainType &o) -> bool{ |
184 | merge = true; | 185 | merge = true; |