summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-09-08 22:16:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-08 13:27:53 -0700
commit7bbd60a4fdf75040454ddcd9edd0026e4ae5a0ad (patch)
tree5c5e88c8ecd09070b42c7f22830c9ffea2dac63d
parent647645d6e458b1ab510fe72a897676f1f1cc0291 (diff)
downloadsubsurface-7bbd60a4fdf75040454ddcd9edd0026e4ae5a0ad.tar.gz
Only use DC_TRANSPORT_* with SSRF_CUSTOM_SERIAL
This if'defs DC_TRANSPORT_* use with SSRF_CUSTOM_SERIAL, because the enum doesn't exist when building against stock libdivecomputer. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 71761bfa7..7e18dae70 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -347,7 +347,9 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
data.deviceid = data.diveid = 0;
set_default_dive_computer(data.vendor, data.product);
set_default_dive_computer_device(data.devname);
+#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
set_default_dive_computer_download_mode(ui.bluetoothMode->isChecked() ? DC_TRANSPORT_BLUETOOTH : DC_TRANSPORT_SERIAL);
+#endif
thread = new DownloadThread(this, &data);
connect(thread, SIGNAL(finished()),