diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index cf08321c..25786361 100644 --- a/connection.cpp +++ b/connection.cpp @@ -175,12 +175,13 @@ void Connection::sync(int timeout) d->syncJob = nullptr; emit syncDone(); }); + connect( job, &SyncJob::retryScheduled, this, &Connection::networkError); connect( job, &SyncJob::failure, [=] () { d->syncJob = nullptr; if (job->error() == BaseJob::ContentAccessError) emit loginError(job->errorString()); else - emit connectionError(job->errorString()); + emit syncError(job->errorString()); }); } |