summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-24 11:30:12 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-24 11:33:18 +0900
commit99e63c9d4bed471e9ed9d4205c7c09d101644ce1 (patch)
treef34e35a9cd2c555f01c8af9887b1e16334115935
parenta0a4afb1f26bf6d8c75e7f4907dd6c3b0771b0f6 (diff)
Wifi: Clear password data when the dialog hidden
Change-Id: I67d6112fe587abe3506e80835281ac347262aae7 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
-rw-r--r--app/wifi/Wifi.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml
index dcde6ed..2215de9 100644
--- a/app/wifi/Wifi.qml
+++ b/app/wifi/Wifi.qml
@@ -184,7 +184,14 @@ SettingPage {
anchors.fill: parent
visible: false
z: 1
- onVisibleChanged: if (visible) password.forceActiveFocus()
+ onVisibleChanged: {
+ if (visible) {
+ password.forceActiveFocus()
+ } else {
+ password.text = ''
+ }
+ }
+
ColumnLayout {
anchors.fill: parent
Item {