mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
04785f3c8b
commit
f4165a9eea
1 changed files with 0 additions and 1 deletions
|
@ -334,7 +334,6 @@ void QMLManager::saveCloudCredentials()
|
|||
return;
|
||||
}
|
||||
}
|
||||
setOldStatus(credentialStatus());
|
||||
s.beginGroup("CloudStorage");
|
||||
s.setValue("email", cloudUser);
|
||||
s.setValue("password", cloudPwd);
|
||||
|
|
Loading…
Add table
Reference in a new issue