diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index b54a52b5e..3737f3357 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -244,13 +244,6 @@ Kirigami.ApplicationWindow { text: qsTr("Dive list") onTriggered: { manager.appendTextToLog("requested dive list with credential status " + prefs.credentialStatus) - if (prefs.credentialStatus == CloudStatus.CS_UNKNOWN) { - // the user has asked to change credentials - if the credentials before that - // were valid, go back to dive list - if (prefs.oldStatus == CloudStatus.CS_VERIFIED) { - prefs.credentialStatus = prefs.oldStatus - } - } returnTopPage() globalDrawer.close() } diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp index cf7b5ddbb..47caef005 100644 --- a/mobile-widgets/qmlprefs.cpp +++ b/mobile-widgets/qmlprefs.cpp @@ -132,8 +132,6 @@ void QMLPrefs::cancelCredentialsPinSetup() */ setCredentialStatus(qPrefCloudStorage::CS_UNKNOWN); - qPrefCloudStorage::set_cloud_storage_email(m_cloudUserName); - qPrefCloudStorage::set_cloud_storage_password(m_cloudPassword); qPrefCloudStorage::set_cloud_verification_status(m_credentialStatus); QMLManager::instance()->setStartPageText(tr("Starting..."));