diff options
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r-- | common/resourcefacade.cpp | 3 |
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(); |