kdeconnect-kde/interfaces
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
..
systeminterfaces [plugins/mousepad]: Add support for the persistence feature of the RemoteDesktop portal 2024-01-28 14:00:05 +00:00
CMakeLists.txt Cleanup all occurences of QT_MAJOR_VERSION in cmake 2023-12-28 17:49:07 +01:00
commandsmodel.cpp Add explicit moc includes to cpp files 2023-07-30 07:27:45 +00:00
commandsmodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
conversationmessage.cpp Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
conversationmessage.h Do not use empty QStringLiteral macro 2023-07-20 13:32:16 +03:00
dbushelpers.h Move setWhenAvailable from dbusinterfaces to dbushelpers 2023-07-23 16:53:57 +02:00
dbusinterfaces.cpp Reformat project with clang-format 2023-12-02 14:56:20 +01:00
dbusinterfaces.h Remove photo plugin 2023-09-15 23:04:17 +00:00
devicesmodel.cpp Update old-style connect/disconnect where possible 2023-08-08 22:51:30 +02:00
devicesmodel.h Discard unused params more elegantly 2023-08-05 20:22:18 +00:00
devicespluginfilterproxymodel.cpp urlhandler: Fix devicePicker selection with --device 2024-05-20 09:56:03 +00:00
devicespluginfilterproxymodel.h urlhandler: Fix devicePicker selection with --device 2024-05-20 09:56:03 +00:00
devicessortproxymodel.cpp Fix inverted alphabetical device sorting order 2024-05-20 09:53:10 +00:00
devicessortproxymodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
Messages.sh Fix i18n: extract messages 2019-12-21 16:16:33 +02:00
notificationsmodel.cpp Make sure we are not using deprecated APIs 2024-04-27 17:47:29 +02:00
notificationsmodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
pluginmodel.cpp GIT_SILENT: Adapt to KConfigGroup name officially being a QString type 2023-11-06 20:05:39 +01:00
pluginmodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
remotecommandsmodel.cpp Add explicit moc includes to cpp files 2023-07-30 07:27:45 +00:00
remotecommandsmodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
remotesinksmodel.cpp Add explicit moc includes to cpp files 2023-07-30 07:27:45 +00:00
remotesinksmodel.h Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00