summaryrefslogtreecommitdiffstats
path: root/common/facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/facade.h')
-rw-r--r--common/facade.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/facade.h b/common/facade.h
index 5ed3bde..38388c7 100644
--- a/common/facade.h
+++ b/common/facade.h
@@ -54,11 +54,8 @@ public:
54 { 54 {
55 //TODO: JOBAPI: that last empty .then should not be necessary 55 //TODO: JOBAPI: that last empty .then should not be necessary
56 //TODO: remove newRevision 56 //TODO: remove newRevision
57 if (mLatestRevision == newRevision && mLatestRevision > 0) { 57 return queryFunction(mLatestRevision + 1).then<void, qint64>([this](qint64 revision) {
58 return KAsync::null<void>(); 58 mLatestRevision = revision;
59 }
60 return queryFunction(mLatestRevision).then<void, qint64>([this](qint64 revision) {
61 mLatestRevision = revision + 1;
62 }).then<void>([](){}); 59 }).then<void>([](){});
63 } 60 }
64 61