summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-13 09:05:31 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-13 09:05:31 +0200
commit88e8ed3cc36939f220a7051062dd203054d2ade6 (patch)
tree5aa945b338a051ee164c7f980e2ac75b680d737b /common/resourcefacade.cpp
parentb9ad9462df22a4d5c50ecb7c1c581c637f22ed61 (diff)
downloadsink-88e8ed3cc36939f220a7051062dd203054d2ade6.tar.gz
sink-88e8ed3cc36939f220a7051062dd203054d2ade6.zip
Stop abusing the identifier property
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r--common/resourcefacade.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index accbd6d..e6d235f 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -54,8 +54,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::create(const DomainType &domai
54{ 54{
55 return KAsync::start<void>([domainObject, this]() { 55 return KAsync::start<void>([domainObject, this]() {
56 const QByteArray type = domainObject.getProperty("type").toByteArray(); 56 const QByteArray type = domainObject.getProperty("type").toByteArray();
57 //FIXME use .identifier() instead 57 const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier();
58 const QByteArray providedIdentifier = domainObject.getProperty("identifier").toByteArray();
59 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier; 58 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier;
60 mConfigStore.add(identifier, type); 59 mConfigStore.add(identifier, type);
61 auto changedProperties = domainObject.changedProperties(); 60 auto changedProperties = domainObject.changedProperties();