diff options
-rw-r--r-- | connection.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp index 9664521c..38d27a63 100644 --- a/connection.cpp +++ b/connection.cpp @@ -117,8 +117,12 @@ SyncJob* Connection::sync(int timeout) d->processRooms(syncJob->roomData()); emit syncDone(); }); - connect( syncJob, &SyncJob::failure, - [=] () { emit connectionError(syncJob->errorString());}); + connect( syncJob, &SyncJob::failure, [=] () { + if (syncJob->error() == BaseJob::ContentAccessError) + emit loginError(syncJob->errorString()); + else + emit connectionError(syncJob->errorString()); + }); syncJob->start(); return syncJob; } |