From e3a9166f461372f29abca99f044a41664ce5dc52 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Dec 2019 14:39:31 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mobile-widgets/qmlmanager.cpp') 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); -- cgit v1.2.3-70-g09d2