summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/store.cpp b/common/store.cpp
index a58287b..d7b277d 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -65,7 +65,7 @@ static QMap<QByteArray, QByteArray> getResources(const QList<QByteArray> &resour
65 65
66 QMap<QByteArray, QByteArray> resources; 66 QMap<QByteArray, QByteArray> resources;
67 // Return the global resource (signified by an empty name) for types that don't belong to a specific resource 67 // Return the global resource (signified by an empty name) for types that don't belong to a specific resource
68 if (type == "sinkresource" || type == "sinkaccount" || type == "identity") { 68 if (ApplicationDomain::isGlobalType(type)) {
69 resources.insert("", ""); 69 resources.insert("", "");
70 return resources; 70 return resources;
71 } 71 }
@@ -145,9 +145,7 @@ QSharedPointer<QAbstractItemModel> Store::loadModel(Query query)
145template <class DomainType> 145template <class DomainType>
146static std::shared_ptr<StoreFacade<DomainType>> getFacade(const QByteArray &resourceInstanceIdentifier) 146static std::shared_ptr<StoreFacade<DomainType>> getFacade(const QByteArray &resourceInstanceIdentifier)
147{ 147{
148 148 if (ApplicationDomain::isGlobalType(ApplicationDomain::getTypeName<DomainType>())) {
149 const auto type = ApplicationDomain::getTypeName<DomainType>();
150 if (type == "sinkresource" || type == "sinkaccount") {
151 if (auto facade = FacadeFactory::instance().getFacade<DomainType>("", "")) { 149 if (auto facade = FacadeFactory::instance().getFacade<DomainType>("", "")) {
152 return facade; 150 return facade;
153 } 151 }