From 0909360cdf270f6074b698bf7c34cf8566e8a71c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 9 May 2017 22:19:37 +0200 Subject: Set the resource offline on no server host not found is pretty much the same as offline for our purpose. --- common/synchronizer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/synchronizer.cpp') diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 175ed83..b9decbd 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp @@ -329,6 +329,9 @@ void Synchronizer::setStatusFromResult(const KAsync::Error &error, const QString if (error.errorCode == ApplicationDomain::ConnectionError) { //Couldn't connect, so we assume we don't have a network connection. setStatus(ApplicationDomain::OfflineStatus, s, requestId); + } else if (error.errorCode == ApplicationDomain::NoServerError) { + //Failed to contact the server. + setStatus(ApplicationDomain::OfflineStatus, s, requestId); } else if (error.errorCode == ApplicationDomain::ConfigurationError) { //There is an error with the configuration. setStatus(ApplicationDomain::ErrorStatus, s, requestId); -- cgit v1.2.3