mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile-widgets: remove cloudPin() from qmlmanager
cloudPin does only have the values "" and NULL, so replace cloudPin() with "" in csa->backend() call remove setting of cloudPin to "" Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f1a48d7f79
commit
e3a9166f46
1 changed files with 2 additions and 3 deletions
|
@ -621,8 +621,8 @@ void QMLManager::tryRetrieveDataFromBackend()
|
|||
setStartPageText(tr("Testing cloud credentials"));
|
||||
appendTextToLog("Have credentials, let's see if they are valid");
|
||||
CloudStorageAuthenticate *csa = new CloudStorageAuthenticate(this);
|
||||
csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password,
|
||||
QMLPrefs::instance()->cloudPin());
|
||||
csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password, "");
|
||||
|
||||
// let's wait here for the signal to avoid too many more nested functions
|
||||
QTimer myTimer;
|
||||
myTimer.setSingleShot(true);
|
||||
|
@ -638,7 +638,6 @@ void QMLManager::tryRetrieveDataFromBackend()
|
|||
return;
|
||||
}
|
||||
myTimer.stop();
|
||||
QMLPrefs::instance()->setCloudPin("");
|
||||
if (prefs.cloud_verification_status == qPrefCloudStorage::CS_INCORRECT_USER_PASSWD) {
|
||||
appendTextToLog(QStringLiteral("Incorrect cloud credentials"));
|
||||
setStartPageText(RED_FONT + tr("Incorrect cloud credentials") + END_FONT);
|
||||
|
|
Loading…
Reference in a new issue