diff options
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index 04433f8..e467b8f 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -175,9 +175,9 @@ public: | |||
175 | //Potentially move to separate thread as well | 175 | //Potentially move to separate thread as well |
176 | auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceName(resourceIdentifier), resourceIdentifier); | 176 | auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceName(resourceIdentifier), resourceIdentifier); |
177 | if (facade) { | 177 | if (facade) { |
178 | facade->remove(domainObject).template then<void>([facade](){}, [](int errorCode, const QString &error) { | 178 | return facade->remove(domainObject).template then<void>([facade](){}, [](int errorCode, const QString &error) { |
179 | Warning() << "Failed to remove"; | 179 | Warning() << "Failed to remove"; |
180 | }).exec().waitForFinished(); | 180 | }); |
181 | } | 181 | } |
182 | return KAsync::error<void>(-1, "Failed to create a facade"); | 182 | return KAsync::error<void>(-1, "Failed to create a facade"); |
183 | } | 183 | } |