mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
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>
This commit is contained in:
parent
1de56d468f
commit
46032af320
1 changed files with 4 additions and 5 deletions
|
@ -504,7 +504,6 @@ void QMLManager::finishSetup()
|
||||||
// Initialize cloud credentials.
|
// Initialize cloud credentials.
|
||||||
git_local_only = !prefs.cloud_auto_sync;
|
git_local_only = !prefs.cloud_auto_sync;
|
||||||
|
|
||||||
// if the cloud credentials are valid, we should get the GPS Webservice ID as well
|
|
||||||
QString url;
|
QString url;
|
||||||
if (!qPrefCloudStorage::cloud_storage_email().isEmpty() &&
|
if (!qPrefCloudStorage::cloud_storage_email().isEmpty() &&
|
||||||
!qPrefCloudStorage::cloud_storage_password().isEmpty() &&
|
!qPrefCloudStorage::cloud_storage_password().isEmpty() &&
|
||||||
|
@ -589,10 +588,10 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne
|
||||||
qPrefCloudStorage::set_cloud_verification_status(m_oldStatus);
|
qPrefCloudStorage::set_cloud_verification_status(m_oldStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!noCloud &&
|
if (!noCloud && !verifyCredentials(newEmail, newPassword, pin)) {
|
||||||
!verifyCredentials(newEmail, newPassword, pin))
|
appendTextToLog("saveCloudCredentials: given cloud credentials didn't verify");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
qPrefCloudStorage::set_cloud_storage_email(newEmail);
|
qPrefCloudStorage::set_cloud_storage_email(newEmail);
|
||||||
qPrefCloudStorage::set_cloud_storage_password(newPassword);
|
qPrefCloudStorage::set_cloud_storage_password(newPassword);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue