Commit efc104fa authored by Bart Ribbers's avatar Bart Ribbers Committed by Nicolas Fella
Browse files

Show connected but non-paired devices

Devices like Wiimotes and DualShock 3's use a custom method of
connecting. This causes those devices to not actually be paired like
usual but still be capable of connecting to the system.
These devices however never showed up in either the KCM or the applet as
they only showed paired devices, even if the devices were connected.

BUG: 432715
(cherry picked from commit 039c90be)
parent 9fb13aa2
......@@ -97,6 +97,6 @@ bool DevicesProxyModel::duplicateIndexAddress(const QModelIndex &idx) const
bool DevicesProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
{
const QModelIndex index = sourceModel()->index(source_row, 0, source_parent);
// Only show paired devices in the KCM and applet
return index.data(BluezQt::DevicesModel::PairedRole).toBool();
// Only show paired and connected devices in the KCM and applet
return index.data(BluezQt::DevicesModel::PairedRole).toBool() || index.data(BluezQt::DevicesModel::ConnectedRole).toBool();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment