summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 18:51:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:20:19 -0800
commit0c840ba22a045a988b00a660c7682bc2c4415da0 (patch)
tree45b567d9855ccb56e0dddd75b24fb3674e71e952
parent814f6b3579e9796d3151c6a13e6f08978dd3a612 (diff)
downloadsubsurface-0c840ba22a045a988b00a660c7682bc2c4415da0.tar.gz
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 <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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 &&