summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-08 10:21:22 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-08 19:45:40 +0300
commitf4165a9eea32ca265cc1e3e88cdae599bc813cdb (patch)
tree5c5f2a236e39dd7308db240b5a512b7a1fd268b1 /mobile-widgets
parent04785f3c8b7194c35327c9d928f165e3109be2ef (diff)
downloadsubsurface-f4165a9eea32ca265cc1e3e88cdae599bc813cdb.tar.gz
mobile: only set old credential status in one place
The old credential status should only be set when changing the actual credential status using the setCredentialStatus function. Setting it here is just wrong. It sets the old status to the current, and than adds the current to the prefences, obviously, resulting in old = current, which can not be right and results in a wrong flow of control in the credential state processing. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 982861ba0..b604e7e5a 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -334,7 +334,6 @@ void QMLManager::saveCloudCredentials()
return;
}
}
- setOldStatus(credentialStatus());
s.beginGroup("CloudStorage");
s.setValue("email", cloudUser);
s.setValue("password", cloudPwd);