bluetooth: Before activation of a local device in UI, verify that it has a valid address.
Change-Id: I516d71312ed269d75fa9ae81e05cabfa41f264fa Reviewed-on: https://review.haiku-os.org/c/haiku/+/10568 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0a40b3a1ce
commit
6e52ff1941
@@ -262,7 +262,8 @@ BluetoothSettingsView::_BuildLocalDevicesMenu()
|
||||
void
|
||||
BluetoothSettingsView::_MarkLocalDevice(LocalDevice* lDevice)
|
||||
{
|
||||
// TODO: Device integrity should be rechecked.
|
||||
if (bdaddrUtils::Compare(lDevice->GetBluetoothAddress(), BDADDR_NULL))
|
||||
return;
|
||||
|
||||
fExtDeviceView->SetLocalDevice(lDevice);
|
||||
fExtDeviceView->SetEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user