From f1a48d7f79c70395bef315e0bd7ed42805cd8eec Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Dec 2019 14:34:47 +0100 Subject: [PATCH] mobile-widget: simplify saveCredentials() in qmlmanager cloudPin is only set to "" and NULL, therefore and "if" checking if cloudPin is not empty will never have affect. Remove else part. Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 2f72fa1c7..243ccabb0 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -565,10 +565,6 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne currentGitLocalOnly = git_local_only; git_local_only = false; openLocalThenRemote(url); - } else if (prefs.cloud_verification_status == qPrefCloudStorage::CS_NEED_TO_VERIFY && - !QMLPrefs::instance()->cloudPin().isEmpty()) { - // the user entered a PIN? - tryRetrieveDataFromBackend(); } }