mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
QML UI: don't disclose the current password
This isn't perfect, but at least it doesn't disclose a password that isn't currently being edited. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a03aa44821
commit
680022aea5
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ Item {
|
|||
id: showPassword
|
||||
Layout.preferredWidth: col2Width
|
||||
onCheckedChanged: {
|
||||
if (checked)
|
||||
password.text = "" // don't show a hidden password
|
||||
password.echoMode = checked ? TextInput.Normal : TextInput.Password
|
||||
}
|
||||
indicator: Rectangle {
|
||||
|
|
Loading…
Add table
Reference in a new issue