From f3eb08a93f093ebe4ac97221993103c4f12c6212 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 27 Jun 2017 23:15:27 +0200 Subject: Ensure we have the right facade --- common/facade.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/facade.cpp b/common/facade.cpp index 38ec1dc..9c14a23 100644 --- a/common/facade.cpp +++ b/common/facade.cpp @@ -104,6 +104,7 @@ KAsync::Job GenericFacade::remove(const DomainType &domainObje template QPair, typename ResultEmitter::Ptr> GenericFacade::load(const Sink::Query &query, const Log::Context &ctx) { + Q_ASSERT(DomainType::name == query.type() || query.type().isEmpty()); // The runner lives for the lifetime of the query auto runner = new QueryRunner(query, mResourceContext, bufferTypeForDomainType(), ctx); runner->setResultTransformation(mResultTransformation); -- cgit v1.2.3