Update downloadfromdivecomputer.cpp

Per Michael's suggestion, use isBluetoothAddress as check before skipping Bluetooth scan. 

Signed-off-by: jme <32236882+notrege@users.noreply.github.com>
This commit is contained in:
jme 2024-03-07 16:33:13 +00:00 committed by Michael Keller
parent ffce4bc097
commit a5575f43a3

View file

@ -636,7 +636,7 @@ void DownloadFromDCWidget::enableBluetoothMode(int state)
ui.chooseBluetoothDevice->setEnabled(state == Qt::Checked);
if (state == Qt::Checked) {
if (ui.device->currentText().isEmpty())
if (!isBluetoothAddress(ui.device->currentText()))
selectRemoteBluetoothDevice();
} else {
ui.device->setCurrentIndex(-1);