From 6ade74e43bf322c751b473ecc77df0669aecc2d7 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 19 Mar 2019 17:28:56 -0700 Subject: settings: wifi: qml: allow canceling of agent requests To cancel a passphase agent request it is needed to send a blank password request. Bug-AGL: SPEC-2271 Change-Id: I04da826e68b475a7d87699cfed54baaf75478786 Signed-off-by: Matt Ranostay --- app/wifi/Wifi.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml index f183b8d..f3b6d32 100644 --- a/app/wifi/Wifi.qml +++ b/app/wifi/Wifi.qml @@ -163,8 +163,9 @@ SettingPage { Button { text: 'Cancel' onClicked: { - dialog.visible = false - password.text = '' + dialog.visible = false + password.text = '' + network.input(password.reqid, '') } } } @@ -188,8 +189,10 @@ SettingPage { } onInvalidPassphrase: { - console.log("Invalid passphrase for (", service, ")") - network.connect(service) + if (password.text != '') { + console.log("Invalid passphrase for (", service, ")") + network.connect(service) + } } } } -- cgit 1.2.3-korg