summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-09 22:19:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-09 22:19:37 +0200
commit0909360cdf270f6074b698bf7c34cf8566e8a71c (patch)
treec2c8f9ca56268bb5d4d943699b03196576e11b90 /common
parent4da825f0429f1f125abe5f1843cd4e3ac5387346 (diff)
downloadsink-0909360cdf270f6074b698bf7c34cf8566e8a71c.tar.gz
sink-0909360cdf270f6074b698bf7c34cf8566e8a71c.zip
Set the resource offline on no server
host not found is pretty much the same as offline for our purpose.
Diffstat (limited to 'common')
-rw-r--r--common/synchronizer.cpp3
1 files changed, 3 insertions, 0 deletions
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
329 if (error.errorCode == ApplicationDomain::ConnectionError) { 329 if (error.errorCode == ApplicationDomain::ConnectionError) {
330 //Couldn't connect, so we assume we don't have a network connection. 330 //Couldn't connect, so we assume we don't have a network connection.
331 setStatus(ApplicationDomain::OfflineStatus, s, requestId); 331 setStatus(ApplicationDomain::OfflineStatus, s, requestId);
332 } else if (error.errorCode == ApplicationDomain::NoServerError) {
333 //Failed to contact the server.
334 setStatus(ApplicationDomain::OfflineStatus, s, requestId);
332 } else if (error.errorCode == ApplicationDomain::ConfigurationError) { 335 } else if (error.errorCode == ApplicationDomain::ConfigurationError) {
333 //There is an error with the configuration. 336 //There is an error with the configuration.
334 setStatus(ApplicationDomain::ErrorStatus, s, requestId); 337 setStatus(ApplicationDomain::ErrorStatus, s, requestId);