diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-09-27 18:42:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-29 08:13:25 -0700 |
commit | 0af64e4986b84cc98dccfa71a85fb978247077ce (patch) | |
tree | a219cc86bdf477cbd139f38aabe4fb4d419e9f62 /mobile-widgets/qmlmanager.cpp | |
parent | 85dfdaa3e50398d090b3ae5f3cc3159f7fb82887 (diff) | |
download | subsurface-0af64e4986b84cc98dccfa71a85fb978247077ce.tar.gz |
mobile: make sure that the old credential status is correct
This commit is just a precaution. It makes sure that the old
(aka previous) credential status is correctly set on all changes
of this status.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index e30d7ca9a..15b4eafe5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1413,6 +1413,7 @@ QMLManager::cloud_status_qml QMLManager::credentialStatus() const void QMLManager::setCredentialStatus(const cloud_status_qml value) { if (m_credentialStatus != value) { + setOldStatus(m_credentialStatus); if (value == CS_NOCLOUD) { appendTextToLog("Switching to no cloud mode"); set_filename(NOCLOUD_LOCALSTORAGE, true); |