diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-27 14:39:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-28 08:34:56 -0800 |
commit | e3a9166f461372f29abca99f044a41664ce5dc52 (patch) | |
tree | 7e55293c01be46bd90fbe3226bec006e5f60f693 /mobile-widgets/qmlmanager.cpp | |
parent | f1a48d7f79c70395bef315e0bd7ed42805cd8eec (diff) | |
download | subsurface-e3a9166f461372f29abca99f044a41664ce5dc52.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 243ccabb0..fe884ceca 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -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); |