summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-01-02 10:04:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-04 10:00:44 -0800
commit9cebcb836f840fbd6da6ad59426a5717c76cc342 (patch)
treed39dc60e1d290f3a232d5abb20602e97401d3858
parentde46f2b37cb354f8f7fbd9867800a591f24a6f5f (diff)
downloadsubsurface-9cebcb836f840fbd6da6ad59426a5717c76cc342.tar.gz
Give the user more information on cloud credentials
This gives the user a bit more information about the progress of setting the cloud credentials. IMO, especially the information that the credentials are invalid is crucial for the user experience. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qmlmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 23c620e4c..aebc65f92 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -153,6 +153,7 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute)
// and (if we haven't done so) load the dive list
if (!same_string(prefs.cloud_storage_email, "") &&
!same_string(prefs.cloud_storage_password, "")) {
+ setStartPageText(tr("Testing cloud credentials"));
appendTextToLog("Have credentials, let's see if they are valid");
if (!mgr)
mgr = new QNetworkAccessManager(this);
@@ -184,7 +185,7 @@ void QMLManager::provideAuth(QNetworkReply *reply, QAuthenticator *auth)
auth->password() == QString(prefs.cloud_storage_password)) {
// OK, credentials have been tried and didn't work, so they are invalid
appendTextToLog("Cloud credentials are invalid");
- setStartPageText(tr("No recorded dives found. You can download your dives to this device from the Subsurface cloud storage service, from your dive computer, or add them manually."));
+ setStartPageText(tr("Cloud credentials are invalid"));
reply->disconnect();
reply->abort();
reply->deleteLater();