diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 14:13:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 16:10:50 -0700 |
commit | 7757ce878b3b9351bbc0fcf2f98e211b62203d4a (patch) | |
tree | 88b2a50ea724729805f52cb0a9e705ccf1f32701 /mobile-widgets | |
parent | 46032af320bb4bf405f9c94a151da73fd49504a2 (diff) | |
download | subsurface-7757ce878b3b9351bbc0fcf2f98e211b62203d4a.tar.gz |
mobile/cloud-storage: fix test for no cloud to cloud transition
The noCloud variable contains our desired state, we need to test for the
previous state for this to make sense.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index dd3af1a49..ce998062d 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -595,7 +595,7 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne qPrefCloudStorage::set_cloud_storage_email(newEmail); qPrefCloudStorage::set_cloud_storage_password(newPassword); - if (noCloud && cloudCredentialsChanged && dive_table.nr) { + if (m_oldStatus == qPrefCloudStorage::CS_NOCLOUD && cloudCredentialsChanged && dive_table.nr) { // we came from NOCLOUD and are connecting to a cloud account; // since we already have dives in the table, let's remember that so we can keep them noCloudToCloud = true; |