Substring match BT address
Since a known DC will have the name prepended to the BT/BLE addresss we need to substring match the BT address. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
c70225f575
commit
0f588f5227
@ -53,6 +53,6 @@ void ConnectionListModel::removeAllAddresses()
|
||||
|
||||
int ConnectionListModel::indexOf(QString address)
|
||||
{
|
||||
const QRegExp re(address, Qt::CaseInsensitive);
|
||||
const QRegExp re(".*" + address + ".*", Qt::CaseInsensitive);
|
||||
return m_addresses.indexOf(re);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user