diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 14:10:19 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 16:10:50 -0700 |
commit | 46032af320bb4bf405f9c94a151da73fd49504a2 (patch) | |
tree | 4abb45179065998c9da679084d6c5cb3cbc7de87 /mobile-widgets | |
parent | 1de56d468fda51b03c0bc3361822a7ae3b42dbb5 (diff) | |
download | subsurface-46032af320bb4bf405f9c94a151da73fd49504a2.tar.gz |
mobile/cleanup: remove outdated comment and fix whitespace
We haven't supported the GPS web service for a long time.
Also, add another message for the log to be able to more easily trace
one error case.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index d19aeb28b..dd3af1a49 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -504,14 +504,13 @@ void QMLManager::finishSetup() // Initialize cloud credentials. git_local_only = !prefs.cloud_auto_sync; - // if the cloud credentials are valid, we should get the GPS Webservice ID as well QString url; if (!qPrefCloudStorage::cloud_storage_email().isEmpty() && !qPrefCloudStorage::cloud_storage_password().isEmpty() && getCloudURL(url) == 0) { openLocalThenRemote(url); } else if (!empty_string(existing_filename) && - qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_UNKNOWN) { + qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_UNKNOWN) { setOldStatus((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status()); set_filename(qPrintable(nocloud_localstorage())); qPrefCloudStorage::set_cloud_verification_status(qPrefCloudStorage::CS_NOCLOUD); @@ -589,10 +588,10 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne qPrefCloudStorage::set_cloud_verification_status(m_oldStatus); } - if (!noCloud && - !verifyCredentials(newEmail, newPassword, pin)) + if (!noCloud && !verifyCredentials(newEmail, newPassword, pin)) { + appendTextToLog("saveCloudCredentials: given cloud credentials didn't verify"); return; - + } qPrefCloudStorage::set_cloud_storage_email(newEmail); qPrefCloudStorage::set_cloud_storage_password(newPassword); |