diff options
Diffstat (limited to 'common/changereplay.cpp')
-rw-r--r-- | common/changereplay.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/changereplay.cpp b/common/changereplay.cpp index a0796eb..13ed49e 100644 --- a/common/changereplay.cpp +++ b/common/changereplay.cpp | |||
@@ -154,9 +154,12 @@ KAsync::Job<void> ChangeReplay::replayNextRevision() | |||
154 | .syncThen<void>([this, lastReplayedRevision]() { | 154 | .syncThen<void>([this, lastReplayedRevision]() { |
155 | recordReplayedRevision(*lastReplayedRevision); | 155 | recordReplayedRevision(*lastReplayedRevision); |
156 | mMainStoreTransaction.abort(); | 156 | mMainStoreTransaction.abort(); |
157 | if (allChangesReplayed()) { | 157 | if (ChangeReplay::allChangesReplayed()) { |
158 | mReplayInProgress = false; | 158 | mReplayInProgress = false; |
159 | emit changesReplayed(); | 159 | //In case we have a derived implementation |
160 | if (allChangesReplayed()) { | ||
161 | emit changesReplayed(); | ||
162 | } | ||
160 | } else { | 163 | } else { |
161 | QTimer::singleShot(0, [this]() { | 164 | QTimer::singleShot(0, [this]() { |
162 | mReplayInProgress = false; | 165 | mReplayInProgress = false; |