From: Tasuku Suzuki Date: Sat, 24 Dec 2016 02:30:12 +0000 (+0900) Subject: Wifi: Clear password data when the dialog hidden X-Git-Tag: 3.0.0~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=99e63c9d4bed471e9ed9d4205c7c09d101644ce1;p=apps%2Fsettings.git Wifi: Clear password data when the dialog hidden Change-Id: I67d6112fe587abe3506e80835281ac347262aae7 Signed-off-by: Tasuku Suzuki --- 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 {