From 8a20509861d1c7ad78002e53df61cf1f0129907f Mon Sep 17 00:00:00 2001 From: jme <32236882+notrege@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:15:34 +0100 Subject: [PATCH] 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> --- desktop-widgets/downloadfromdivecomputer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index 644f40d2d..5607d130e 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -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); \