aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-30 18:59:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-31 11:40:37 -0700
commit9a2759fc1fba63d2caf6f69d6ea9850051ea0b54 (patch)
tree1c7df8edc44ef0cfdc98768b76d93a2f3019d866
parenteb584db8ffe8ec57cc1dda7cc153100c9c352ef2 (diff)
downloadsubsurface-9a2759fc1fba63d2caf6f69d6ea9850051ea0b54.tar.gz
mobile: make sure old credentialStatus is defined
In commit e76f527fe53063, 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>
-rw-r--r--mobile-widgets/qmlmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 00b9f6ee8..ed58fffb5 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -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);