diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-22 14:43:23 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-22 14:43:23 +0100 |
commit | 28c40c63f557fa05c402c9c88ffbe9bfdca20648 (patch) | |
tree | 7256083b2d1d06a275ea237b90d5453e5d37680c /common/store.cpp | |
parent | c799105ca6b4107fa19de9845247f1f3322ea6ef (diff) | |
download | sink-28c40c63f557fa05c402c9c88ffbe9bfdca20648.tar.gz sink-28c40c63f557fa05c402c9c88ffbe9bfdca20648.zip |
Never remove the static facades.
This fixes the clientapitest.
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/store.cpp b/common/store.cpp index 5e0c327..6aae00f 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -146,7 +146,7 @@ QSharedPointer<QAbstractItemModel> Store::loadModel(Query query) | |||
146 | 146 | ||
147 | if (query.liveQuery() && query.getResourceFilter().ids.isEmpty() && !ApplicationDomain::isGlobalType(ApplicationDomain::getTypeName<DomainType>())) { | 147 | if (query.liveQuery() && query.getResourceFilter().ids.isEmpty() && !ApplicationDomain::isGlobalType(ApplicationDomain::getTypeName<DomainType>())) { |
148 | SinkTrace() << "Listening for new resources"; | 148 | SinkTrace() << "Listening for new resources"; |
149 | auto facade = FacadeFactory::instance().getFacade<ApplicationDomain::SinkResource>("", ""); | 149 | auto facade = FacadeFactory::instance().getFacade<ApplicationDomain::SinkResource>(); |
150 | Q_ASSERT(facade); | 150 | Q_ASSERT(facade); |
151 | Sink::Query resourceQuery; | 151 | Sink::Query resourceQuery; |
152 | query.setFlags(Query::LiveQuery); | 152 | query.setFlags(Query::LiveQuery); |
@@ -187,7 +187,7 @@ template <class DomainType> | |||
187 | static std::shared_ptr<StoreFacade<DomainType>> getFacade(const QByteArray &resourceInstanceIdentifier) | 187 | static std::shared_ptr<StoreFacade<DomainType>> getFacade(const QByteArray &resourceInstanceIdentifier) |
188 | { | 188 | { |
189 | if (ApplicationDomain::isGlobalType(ApplicationDomain::getTypeName<DomainType>())) { | 189 | if (ApplicationDomain::isGlobalType(ApplicationDomain::getTypeName<DomainType>())) { |
190 | if (auto facade = FacadeFactory::instance().getFacade<DomainType>("", "")) { | 190 | if (auto facade = FacadeFactory::instance().getFacade<DomainType>()) { |
191 | return facade; | 191 | return facade; |
192 | } | 192 | } |
193 | } | 193 | } |