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>
This commit is contained in:
Jan Mulder 2017-09-27 18:42:19 +02:00 committed by Dirk Hohndel
parent 85dfdaa3e5
commit 0af64e4986

View file

@ -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);