summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index de0dd0626..509d3b402 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -23,6 +23,9 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
timer(new QTimer(this)),
dumpWarningShown(false),
ostcFirmwareCheck(0),
+#if defined (BT_SUPPORT)
+ btd(nullptr),
+#endif
currentState(INITIAL)
{
diveImportedModel = new DiveImportedModel(this);
@@ -301,6 +304,19 @@ void DownloadFromDCWidget::on_product_currentIndexChanged(const QString &)
updateDeviceEnabled();
}
+void DownloadFromDCWidget::on_device_currentTextChanged(const QString &device)
+{
+#if defined(Q_OS_MACOS)
+ if (isBluetoothAddress(device)) {
+ // ensure we have a discovery running
+ if (btd == nullptr)
+ btd = BTDiscovery::instance();
+ }
+#else
+ Q_UNUSED(device)
+#endif
+}
+
void DownloadFromDCWidget::on_search_clicked()
{
if (ui.vendor->currentText() == "Uemis" || ui.vendor->currentText() == "Garmin") {