kdeconnect-kde/urlhandler
Mavroudis Chatzilazaridis 6702190811 urlhandler: Fix devicePicker selection with --device
When using 'Send a file/URL' in the indicator with multiple devices, the
device the user selects for file sharing is not automatically selected in
the URL handler dialog that follows.

This happens because `model.rowForDevice(deviceId)` is called without
waiting for the model to be populated, always returning -1.

Resolving this exposed another bug, where the selected device was still
not the one picked. This happens because `proxyModel` is used to fill the
`QComboBox` but `model` is used to find the correct index. Since
`DevicesPluginFilterProxyModel` sorts and filters the data from `model`
the indices do not match.

This commit addresses these issues by deferring the device selection until
data is available and implementing `rowForDevice` for filtered/sorted data
in `DevicesPluginFilterProxyModel`.
2024-05-20 09:56:03 +00:00
..
CMakeLists.txt Cleanup all occurences of QT_MAJOR_VERSION in cmake 2023-12-28 17:49:07 +01:00
dialog.ui revamp kdeconnect-handler to support full control by GUI 2021-06-02 05:37:44 +05:30
kdeconnect-handler.cpp urlhandler: Fix devicePicker selection with --device 2024-05-20 09:56:03 +00:00
Messages.sh [handler] Extract translatable strings from ui file 2022-11-13 16:40:30 +01:00
org.kde.kdeconnect.handler.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2024-05-04 01:21:06 +00:00