From cd1c28cd7a1631f99d6a6efa1b74180d82c76cc3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Aug 2018 10:23:29 +0200 Subject: Cleanup --- framework/src/domain/contactcontroller.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/src') diff --git a/framework/src/domain/contactcontroller.cpp b/framework/src/domain/contactcontroller.cpp index 0b46b34d..32c6d2a2 100644 --- a/framework/src/domain/contactcontroller.cpp +++ b/framework/src/domain/contactcontroller.cpp @@ -104,8 +104,12 @@ void ContactController::updateSaveAction() void ContactController::loadContact(const QVariant &variant) { + using namespace Sink; + mContact = variant; - if (auto c = variant.value()) { + if (auto c = variant.value()) { + + setAddressbook(ApplicationDomainType::Ptr::create(ApplicationDomainType::createEntity(c->resourceInstanceIdentifier(), c->getAddressbook()))); const auto &vcard = c->getVcard(); KContacts::VCardConverter converter; const auto addressee = converter.parseVCard(vcard); -- cgit v1.2.3