KPasswordDialog: don't hide visibility action in plaintext mode
ClosedPublic

Authored by elvisangelaccio on Apr 5 2017, 9:50 PM.

Details

Summary

Otherwise the user cannot tell whether what's going to be typed will be
visible or not.

BUG: 378276
FIXED-IN: 5.34

Diff Detail

Repository
R236 KWidgetsAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
elvisangelaccio created this revision.Apr 5 2017, 9:50 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 5 2017, 9:50 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
fvogt accepted this revision.Apr 6 2017, 7:02 AM

Tested locally, works fine!

The behaviour is a bit unexpected, but IMO correct:

  • Enter a password
  • Make it visible
  • Delete it
  • Toggle visibility

-> VisibilityAction stays visible, although input empty and password hidden

This revision is now accepted and ready to land.Apr 6 2017, 7:02 AM
In D5312#100027, @fvogt wrote:

Tested locally, works fine!

The behaviour is a bit unexpected, but IMO correct:

  • Enter a password
  • Make it visible
  • Delete it
  • Toggle visibility -> VisibilityAction stays visible, although input empty and password hidden

Good catch. Yes it's a bit inconsistent, but indeed the alternative (toggle visibility -> icon just disappears) is probably worse.

cfeck edited edge metadata.Apr 20 2017, 10:21 PM

Elvis, this was already accepted. If I had objections, I would have stopped you :)

Ok, I just wanted to be sure :)