[KFileWidget] When saving, highlight filename after clicking existing file also when using double-click
ClosedPublic

Authored by ngraham on Mar 18 2019, 10:50 AM.

Details

Summary

Currently, when using single-click mode, when you're saving a file and click on an
existing file, that file is highlighted and the filename field become focused so you
can quickly rename it. This patch makes that behavior work for double-click mode, too

Test Plan

When using single-click:

  • Save a file, single-click on an existing file in the file dialog
  • Observe that current behavior has not changed
  • Open a file, single-click on an existing file in the file dialog
  • Observe that current behavior has not changed
  • Save a file, double-click on an existing file in the file dialog
  • Observe that current behavior has not changed

When using double-click:

  • Save a file, single-click on an existing file in the file dialog
  • Observe that the filename gets selected just like in single-click mode
  • Open a file, single-click on an existing file in the file dialog
  • Observe that current behavior has not changed
  • Save a file, double-click on an existing file in the file dialog
  • Observe that current behavior has not changed

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Mar 18 2019, 10:50 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 18 2019, 10:50 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.Mar 18 2019, 10:50 AM
apol accepted this revision.Mar 26 2019, 2:55 PM
This revision is now accepted and ready to land.Mar 26 2019, 2:55 PM
This revision was automatically updated to reflect the committed changes.