From 1fd6b59a21e82fd58b3d3e93a401a4ed941db7e3 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 28 Dec 2019 18:42:04 +0100 Subject: mobile-widgets: remove second setCredentialStatus() call setOldStatus() and set_filename(). saveCredentials() will adjust email and password. Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 46503b9dd..7a54f4ced 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -456,7 +456,9 @@ void QMLManager::finishSetup() openLocalThenRemote(url); } else if (!empty_string(existing_filename) && qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_UNKNOWN) { - QMLPrefs::instance()->setCredentialStatus(qPrefCloudStorage::CS_NOCLOUD); + QMLPrefs::instance()->setOldStatus((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status()); + set_filename(NOCLOUD_LOCALSTORAGE); + qPrefCloudStorage::set_cloud_verification_status(qPrefCloudStorage::CS_NOCLOUD); saveCloudCredentials(qPrefCloudStorage::cloud_storage_email(), qPrefCloudStorage::cloud_storage_password(), qPrefCloudStorage::cloud_storage_pin()); appendTextToLog(tr("working in no-cloud mode")); int error = parse_file(existing_filename, &dive_table, &trip_table, &dive_site_table); -- cgit v1.2.3-70-g09d2