From 0c840ba22a045a988b00a660c7682bc2c4415da0 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 28 Dec 2019 18:51:27 +0100 Subject: [PATCH] mobile-widgets: remove setCredentialStatus() from saveCloudCredentials() Revert to the divelist by setting oldStatus() directly to set_cloud_verification_status() This is done to further limit the use of setCredentialStatus() and prepare to remove qmlPrefs. Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 3b7cfb4b3..a1490644f 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -526,7 +526,7 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne if (qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_NOCLOUD && !cloudCredentialsChanged) { // just go back to the dive list - QMLPrefs::instance()->setCredentialStatus(QMLPrefs::instance()->oldStatus()); + qPrefCloudStorage::set_cloud_verification_status(QMLPrefs::instance()->oldStatus()); } if (!noCloud &&