diff options
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 58e5e7a..175ed83 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -317,8 +317,10 @@ void Synchronizer::emitProgressNotification(Notification::NoticationType type, i | |||
317 | 317 | ||
318 | void Synchronizer::reportProgress(int progress, int total) | 318 | void Synchronizer::reportProgress(int progress, int total) |
319 | { | 319 | { |
320 | SinkLogCtx(mLogCtx) << "Progress: " << progress << " out of " << total; | 320 | if (progress > 0 && total > 0) { |
321 | emitProgressNotification(Notification::Progress, progress, total, mCurrentRequest.requestId, mCurrentRequest.applicableEntities); | 321 | SinkLogCtx(mLogCtx) << "Progress: " << progress << " out of " << total; |
322 | emitProgressNotification(Notification::Progress, progress, total, mCurrentRequest.requestId, mCurrentRequest.applicableEntities); | ||
323 | } | ||
322 | } | 324 | } |
323 | 325 | ||
324 | void Synchronizer::setStatusFromResult(const KAsync::Error &error, const QString &s, const QByteArray &requestId) | 326 | void Synchronizer::setStatusFromResult(const KAsync::Error &error, const QString &s, const QByteArray &requestId) |