From 9a2759fc1fba63d2caf6f69d6ea9850051ea0b54 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sun, 30 Jul 2017 18:59:41 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets') 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); -- cgit v1.2.3-70-g09d2