mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue