diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-11 17:32:30 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-11 17:32:30 +0200 |
commit | c3a20160d4ff52c8ec288f6a42f7e136064fb493 (patch) | |
tree | 866ff1850a7c160ed39494a989f18aef182d2d2f /common/clientapi.h | |
parent | d6e6cab8b284167a9c8fd30ae669354d8315b3aa (diff) | |
download | sink-c3a20160d4ff52c8ec288f6a42f7e136064fb493.tar.gz sink-c3a20160d4ff52c8ec288f6a42f7e136064fb493.zip |
Replay removals.
Now we just have to avoid removing the revision too early from the
resource.
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 | } |