From: Matt Ranostay Date: Wed, 20 Mar 2019 00:28:56 +0000 (-0700) Subject: settings: wifi: qml: allow canceling of agent requests X-Git-Tag: 7.99.1~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6ade74e43bf322c751b473ecc77df0669aecc2d7;p=apps%2Fsettings.git 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 --- 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) + } } } }