mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:23:24 +00:00
BT discovery: distinguish names with addresses
It's possible that the user has more than one dive computer with the same name paired with their computer / device. So let's just add the address to the name to make it possible to tell those apart. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
790c0dcfc8
commit
ca59dbd40d
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
|
|||
break;
|
||||
}
|
||||
}
|
||||
productList[QObject::tr("Paired Bluetooth Devices")].append(this_d.name);
|
||||
productList[QObject::tr("Paired Bluetooth Devices")].append(this_d.name + " (" + this_d.address.toString() + ")");
|
||||
|
||||
btVP.btdi = device;
|
||||
btVP.vendorIdx = vendorList.indexOf(QObject::tr("Paired Bluetooth Devices"));
|
||||
|
|
Loading…
Add table
Reference in a new issue