Bug 515531 - When the view only has a single item, it's no longer pre-selected (for easily accepting the dialog with the keyboard)
Summary: When the view only has a single item, it's no longer pre-selected (for easily...
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.5.80
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression, usability
Depends on:
Blocks:
 
Reported: 2026-02-04 23:55 UTC by Nate Graham
Modified: 2026-02-06 16:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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