From 0af64e4986b84cc98dccfa71a85fb978247077ce Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 27 Sep 2017 18:42:19 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-70-g09d2