From 1e2e4437094d80f1cdd849c7341019910fc29fb1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 13 Jun 2016 09:11:37 +0200 Subject: Get folder moves to work, and fix the mime message moving. --- common/synchronizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/synchronizer.cpp') 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 const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); const auto found = mainDatabase.contains(sinkId); auto adaptorFactory = Sink::AdaptorFactoryRegistry::instance().getFactory(mResourceType, bufferType); + Q_ASSERT(adaptorFactory); if (!found) { Trace() << "Found a new entity: " << remoteId; createEntity( @@ -178,7 +179,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray Sink::Query query; query.propertyFilter = mergeCriteria; bool merge = false; - Sink::EntityReader reader(mResourceInstanceIdentifier, mResourceType, transaction()); + Sink::EntityReader reader(mResourceType, mResourceInstanceIdentifier, transaction()); reader.query(query, [this, bufferType, remoteId, &merge](const DomainType &o) -> bool{ merge = true; -- cgit v1.2.3