Skip to content

Commit

Permalink
Disable Bluetooth option from GUI if SSRF_CUSTOM_SERIAL is undefined
Browse files Browse the repository at this point in the history
The Bluetooth implementation doesn't work if SSRF_CUSTOM_SERIAL
is undefined. Therefore it is a good idea to remove it from
the UI if the libdivecomputer version is wrong.

Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
claudiuolteanu authored and dirkhh committed Sep 8, 2015
1 parent bb4e340 commit a0e33be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt-ui/downloadfromdivecomputer.cpp
Expand Up @@ -100,7 +100,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
ui.downloadCancelRetryButton->setEnabled(true);
ui.downloadCancelRetryButton->setText(tr("Download"));

#if defined(BT_SUPPORT)
#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
ui.bluetoothMode->setText(tr("Choose Bluetooth download mode"));
ui.bluetoothMode->setChecked(default_dive_computer_download_mode == DC_TRANSPORT_BLUETOOTH);
btDeviceSelectionDialog = 0;
Expand Down

0 comments on commit a0e33be

Please sign in to comment.