diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-27 14:34:47 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-28 08:34:56 -0800 |
commit | f1a48d7f79c70395bef315e0bd7ed42805cd8eec (patch) | |
tree | c5e05df0bc4c1917650f97062977a74656de21cb /mobile-widgets/qmlmanager.cpp | |
parent | 3155b039175436f3d32f5c1719a56f99dadf2f5f (diff) | |
download | subsurface-f1a48d7f79c70395bef315e0bd7ed42805cd8eec.tar.gz |
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 <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 | 4 |
1 files changed, 0 insertions, 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(); } } |