Update downloadfromdivecomputer.cpp

Removed blank lines - forgot that blank lines without a continuation \ would break the macro.    Embarrassing to say the least.   I need to figure out how to upload tested code into git.

Signed-off-by: jme <32236882+notrege@users.noreply.github.com>
This commit is contained in:
jme 2024-04-15 23:15:34 +01:00 committed by Michael Keller
parent 334a357c19
commit 8a20509861

View file

@ -153,12 +153,10 @@ void DownloadFromDCWidget::DC##num##Clicked() \
productModel.setStringList(productList[qPrefDiveComputer::vendor##num()]); \
ui.product->setCurrentIndex(ui.product->findText(qPrefDiveComputer::product##num())); \
bool isBluetoothDevice = isBluetoothAddress(qPrefDiveComputer::device##num()); \
/* If we have a Bluetooth device, set the ui.device->CurrentText to avoid starting \
a Bluetooth scan in enableBluetoothMode(). \
Note: enableBlueToothMode() will set ui.device.CurrentIndex to -1 unless \
ui.bluetoothMode is checked. */ \
if (isBluetoothDevice) \
ui.device->setCurrentText(qPrefDiveComputer::device##num()); \
ui.bluetoothMode->setChecked(isBluetoothDevice); \