summaryrefslogtreecommitdiffstats
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:35:52 -0700
commitd79e5011a530de5d2cf90f0399624968a82ebed0 (patch)
treee7f55ebb01960dd97fa6ab7eab601af3598eb6c1
parent52543d6ce09d31b23374b4b76754bb328e92351a (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>
-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)
+ }
}
}
}