diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/btdeviceselectiondialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop-widgets/btdeviceselectiondialog.cpp b/desktop-widgets/btdeviceselectiondialog.cpp index 9a5e9ddab..2fa6b7679 100644 --- a/desktop-widgets/btdeviceselectiondialog.cpp +++ b/desktop-widgets/btdeviceselectiondialog.cpp @@ -420,7 +420,14 @@ void BtDeviceSelectionDialog::deviceDiscoveryError(QBluetoothDeviceDiscoveryAgen QString BtDeviceSelectionDialog::getSelectedDeviceAddress() { if (selectedRemoteDeviceInfo) { - return selectedRemoteDeviceInfo.data()->address().toString(); + QBluetoothDeviceInfo *deviceInfo = selectedRemoteDeviceInfo.data(); + QBluetoothDeviceInfo::CoreConfigurations flags; + QString prefix = ""; + + flags = deviceInfo->coreConfigurations(); + if (flags == QBluetoothDeviceInfo::LowEnergyCoreConfiguration) + prefix = "LE:"; + return prefix + deviceInfo->address().toString(); } return QString(); |