summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-12 10:05:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-12 10:05:55 -0700
commitca59dbd40dd30694a114f0196f113b9b2ee111db (patch)
tree29295eb42e62ccb638f0650e572e48abd079b2f1 /core/btdiscovery.cpp
parent790c0dcfc876d50b21791ad7b81f693796e2173b (diff)
downloadsubsurface-ca59dbd40dd30694a114f0196f113b9b2ee111db.tar.gz
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>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 2edddb300..4af24521d 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -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"));