summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-17 09:15:10 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-17 09:15:10 +0900
commit0a58e6d11795df7c8d2f0ede4915c147788fa3e6 (patch)
treeb46c5495c853cc41c51d28534fde431ce7e51b9b /core
parenteaed18ba40f158105d9f230c355ab451820d900b (diff)
downloadsubsurface-0a58e6d11795df7c8d2f0ede4915c147788fa3e6.tar.gz
Stay offline if the cloud server is unreachable
It makes no sense to keep trying. Maybe we need a UI to force it online again, but for now this works much better when using cloud storage while actually offline. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/checkcloudconnection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index ef2e516e8..b0addc0ac 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -63,6 +63,7 @@ bool CheckCloudConnection::checkServer()
}
}
git_storage_update_progress(false, "cloud connection failed");
+ prefs.git_local_only = true;
if (verbose)
qDebug() << "connection test to cloud server failed" <<
reply->error() << reply->errorString() <<