From de4e1c1efab7db814e70b66858d18f4ac74eedff Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Dec 2019 09:28:03 +0100 Subject: [PATCH] mobile-widgets/qml: don't call cancelCredentialsPinSetup() Copy functionality from cancelCredentialsPinSetup() into Cancel in CloudCredentials.qml, this is part of the general qmlprefs cleanup. Remove rootItem.returnTopPage() since the user stays on this page (sees credentials again). Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/CloudCredentials.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index 66b6fa855..351c25d1d 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -109,8 +109,10 @@ Item { id: cancelpin text: qsTr("Cancel") onClicked: { - prefs.cancelCredentialsPinSetup() - rootItem.returnTopPage() + PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN + prefs.cloudCredentials = CloudStatus.CS_UNKNOWN + manager.startPageText = qsTr("Check credentials..."); + prefs.showPin = false; } } }