From f6cbafd5db9d75bda4e45d4c2ffb60e9cd174d9b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 10 Feb 2016 14:58:53 +0100 Subject: Avoid constantly printing errors ...if the mimeMessage property is not loaded by a query --- examples/maildirresource/facade.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/maildirresource/facade.cpp b/examples/maildirresource/facade.cpp index a10a18b..a7a0348 100644 --- a/examples/maildirresource/facade.cpp +++ b/examples/maildirresource/facade.cpp @@ -29,8 +29,8 @@ MaildirResourceMailFacade::MaildirResourceMailFacade(const QByteArray &instanceI : Sink::GenericFacade(instanceIdentifier, QSharedPointer::create()) { mResultTransformation = [](Sink::ApplicationDomain::ApplicationDomainType &value) { - const auto property = value.getProperty("mimeMessage"); - if (property.isValid()) { + if (value.hasProperty("mimeMessage")) { + const auto property = value.getProperty("mimeMessage"); //Transform the mime message property into the actual path on disk. const auto mimeMessage = property.toString(); auto parts = mimeMessage.split('/'); -- cgit v1.2.3