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:
parent
ffce4bc097
commit
a5575f43a3
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user