summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-19 17:28:56 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-19 17:33:21 -0700
commit6ade74e43bf322c751b473ecc77df0669aecc2d7 (patch)
tree01be627e68b8e26314b7cbbaf99b2f29960499dc /app
parent1bf9036673ecf5d09dc410700569d42c9b846767 (diff)
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'app')
-rw-r--r--app/wifi/Wifi.qml11
1 files changed, 7 insertions, 4 deletions
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)
+ }
}
}
}