mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile: make sure old credentialStatus is defined
In commit e76f527fe5
, the scenario of switching between 2 already
VERIFIED cloud accounts was identified, which was working poorly. It
needed a restart of the app to get the new account visible.
Reason for this, was the setting of the credentialStatus to the value
of an undefined (never set) old credentialStatus. This commit makes
sure we have a defined credentialStatus, just before changing it to
the new one.
A really mini step forward, as the behavior is still not perfect. Now,
the user has to select the dive list manually, after entering
credentials of the new clould account.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
eb584db8ff
commit
9a2759fc1f
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ void QMLManager::saveCloudCredentials()
|
|||
setStartPageText(RED_FONT + tr("Invalid format for email address") + END_FONT);
|
||||
return;
|
||||
}
|
||||
setOldStatus(credentialStatus());
|
||||
s.beginGroup("CloudStorage");
|
||||
s.setValue("email", cloudUser);
|
||||
s.setValue("password", cloudPwd);
|
||||
|
|
Loading…
Reference in a new issue