summaryrefslogtreecommitdiffstats
path: root/app/wifi/Wifi.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/wifi/Wifi.qml')
-rw-r--r--app/wifi/Wifi.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml
index b4f4485..f183b8d 100644
--- a/app/wifi/Wifi.qml
+++ b/app/wifi/Wifi.qml
@@ -99,6 +99,7 @@ SettingPage {
} else {
console.log("Connecting to ", ssid, " (", service, ")")
networkNameText.font.italic = 1
+ password.text = ''
network.connect(service)
}
}
@@ -130,8 +131,6 @@ SettingPage {
onVisibleChanged: {
if (visible) {
password.forceActiveFocus()
- } else {
- password.text = ''
}
}
@@ -163,7 +162,10 @@ SettingPage {
}
Button {
text: 'Cancel'
- onClicked: dialog.visible = false
+ onClicked: {
+ dialog.visible = false
+ password.text = ''
+ }
}
}
}
@@ -184,5 +186,10 @@ SettingPage {
password.reqid = id
dialog.visible = true
}
+
+ onInvalidPassphrase: {
+ console.log("Invalid passphrase for (", service, ")")
+ network.connect(service)
+ }
}
}