From 859f30d21532644c3b90e79f6686aa7375046087 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 12 Jan 2017 12:54:14 +0100 Subject: syncThen is no longer necessary. --- framework/domain/settings/accountsettings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'framework/domain/settings/accountsettings.cpp') diff --git a/framework/domain/settings/accountsettings.cpp b/framework/domain/settings/accountsettings.cpp index 067d1d79..d7c8c1c0 100644 --- a/framework/domain/settings/accountsettings.cpp +++ b/framework/domain/settings/accountsettings.cpp @@ -152,7 +152,7 @@ void AccountSettings::loadAccount() { Q_ASSERT(!mAccountIdentifier.isEmpty()); Store::fetchOne(Query().filter(mAccountIdentifier)) - .syncThen([this](const SinkAccount &account) { + .then([this](const SinkAccount &account) { mIcon = account.getIcon(); mName = account.getName(); emit changed(); @@ -162,7 +162,7 @@ void AccountSettings::loadAccount() void AccountSettings::loadImapResource() { Store::fetchOne(Query().filter(mAccountIdentifier).containsFilter(ResourceCapabilities::Mail::storage)) - .syncThen([this](const SinkResource &resource) { + .then([this](const SinkResource &resource) { mImapIdentifier = resource.identifier(); mImapServer = resource.getProperty("server").toString(); mImapUsername = resource.getProperty("username").toString(); @@ -176,7 +176,7 @@ void AccountSettings::loadImapResource() void AccountSettings::loadMaildirResource() { Store::fetchOne(Query().filter(mAccountIdentifier).containsFilter(ResourceCapabilities::Mail::storage)) - .syncThen([this](const SinkResource &resource) { + .then([this](const SinkResource &resource) { mMaildirIdentifier = resource.identifier(); auto path = resource.getProperty("path").toString(); if (mPath != path) { @@ -191,7 +191,7 @@ void AccountSettings::loadMaildirResource() void AccountSettings::loadMailtransportResource() { Store::fetchOne(Query().filter(mAccountIdentifier).containsFilter(ResourceCapabilities::Mail::transport)) - .syncThen([this](const SinkResource &resource) { + .then([this](const SinkResource &resource) { mMailtransportIdentifier = resource.identifier(); mSmtpServer = resource.getProperty("server").toString(); mSmtpUsername = resource.getProperty("username").toString(); @@ -206,7 +206,7 @@ void AccountSettings::loadIdentity() { //FIXME this assumes that we only ever have one identity per account Store::fetchOne(Query().filter(mAccountIdentifier)) - .syncThen([this](const Identity &identity) { + .then([this](const Identity &identity) { mIdentityIdentifier = identity.identifier(); mUsername = identity.getName(); mEmailAddress = identity.getAddress(); -- cgit v1.2.3