summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp9
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);