Bug 515531

Summary: When the view only has a single item, it's no longer pre-selected (for easily accepting the dialog with the keyboard)
Product: [Plasma] xdg-desktop-portal-kde Reporter: Nate Graham <nate>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, kdedev
Priority: NOR Keywords: regression, usability
Version First Reported In: 6.5.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2026-02-04 23:55:10 UTC
STEPS TO REPRODUCE
1. Open the app chooser portal (e.g. from ASHPD test app)
2. Focus the search field and write enough text in the search field that only one item is present in the view
3. Press Enter/Return


OBSERVED RESULT
Nothing happens. This appears to be a regression in Plasma 6.6 following the UI overhaul.


EXPECTED RESULT
The single item becomes selected, and pressing Enter/Return even while focus is on the search field will activate the selected item and accept the dialog.


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2026-02-03
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.18.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 17 GB of RAM (16.0 GB usable)
Graphics Processor: AMD Radeon 780M Graphics
Comment 1 Bug Janitor Service 2026-02-05 01:34:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/520
Comment 2 Harald Sitter 2026-02-06 15:27:23 UTC
Git commit f2319f8cef96d19529788fc9e6d6d79b26b14b56 by Harald Sitter.
Committed on 06/02/2026 at 13:02.
Pushed by sitter into branch 'master'.

appchooserdialog: repair single selection logic

- use correct function for itemdelegate and type cast
- set the combobox to default to no index
- give the filter model a bit of time to update
- highlight when an item is the current item

M  +13   -5    src/AppChooserDialog.qml

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/f2319f8cef96d19529788fc9e6d6d79b26b14b56
Comment 3 Harald Sitter 2026-02-06 16:17:57 UTC
Git commit f230c0328c45ee5f26f43eedc0efe066302cafa6 by Harald Sitter.
Committed on 06/02/2026 at 15:34.
Pushed by sitter into branch 'Plasma/6.6'.

appchooserdialog: repair single selection logic

- use correct function for itemdelegate and type cast
- set the combobox to default to no index
- give the filter model a bit of time to update
- highlight when an item is the current item
(cherry picked from commit f2319f8cef96d19529788fc9e6d6d79b26b14b56)

M  +13   -5    src/AppChooserDialog.qml

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/f230c0328c45ee5f26f43eedc0efe066302cafa6