Wifi: Clear password data when the dialog hidden 65/7865/1
authorTasuku Suzuki <tasuku.suzuki@qt.io>
Sat, 24 Dec 2016 02:30:12 +0000 (11:30 +0900)
committerTasuku Suzuki <tasuku.suzuki@qt.io>
Sat, 24 Dec 2016 02:33:18 +0000 (11:33 +0900)
Change-Id: I67d6112fe587abe3506e80835281ac347262aae7
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
app/wifi/Wifi.qml

index dcde6ed..2215de9 100644 (file)
@@ -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 {