summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r--common/resourcefacade.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index 13cad64..4a8037d 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -196,7 +196,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::create(const DomainType &domai
196{ 196{
197 auto configStoreIdentifier = mIdentifier; 197 auto configStoreIdentifier = mIdentifier;
198 auto typeName = mTypeName; 198 auto typeName = mTypeName;
199 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 199 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
200 const QByteArray type = domainObject.getProperty(typeName).toByteArray(); 200 const QByteArray type = domainObject.getProperty(typeName).toByteArray();
201 const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier(); 201 const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier();
202 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier; 202 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier;
@@ -222,7 +222,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::modify(const DomainType &domai
222{ 222{
223 auto configStoreIdentifier = mIdentifier; 223 auto configStoreIdentifier = mIdentifier;
224 auto typeName = mTypeName; 224 auto typeName = mTypeName;
225 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 225 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
226 const QByteArray identifier = domainObject.identifier(); 226 const QByteArray identifier = domainObject.identifier();
227 if (identifier.isEmpty()) { 227 if (identifier.isEmpty()) {
228 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure."; 228 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure.";
@@ -263,7 +263,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::remove(const DomainType &domai
263{ 263{
264 auto configStoreIdentifier = mIdentifier; 264 auto configStoreIdentifier = mIdentifier;
265 auto typeName = mTypeName; 265 auto typeName = mTypeName;
266 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 266 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
267 const QByteArray identifier = domainObject.identifier(); 267 const QByteArray identifier = domainObject.identifier();
268 if (identifier.isEmpty()) { 268 if (identifier.isEmpty()) {
269 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure"; 269 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure";