diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index c1fc34684..122fa2056 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -150,6 +150,7 @@ int DownloadFromDCWidget::deviceIndex(QString deviceText) void DownloadFromDCWidget::DC##num##Clicked() \ { \ ui.vendor->setCurrentIndex(ui.vendor->findText(qPrefDiveComputer::vendor##num())); \ + ui.device->setCurrentText(qPrefDiveComputer::device##num()); \ productModel.setStringList(productList[qPrefDiveComputer::vendor##num()]); \ ui.product->setCurrentIndex(ui.product->findText(qPrefDiveComputer::product##num())); \ bool isBluetoothDevice = isBluetoothAddress(qPrefDiveComputer::device##num()); \ @@ -634,10 +635,13 @@ void DownloadFromDCWidget::enableBluetoothMode(int state) { ui.chooseBluetoothDevice->setEnabled(state == Qt::Checked); - if (state == Qt::Checked) - selectRemoteBluetoothDevice(); - else - ui.device->setCurrentIndex(-1); + if (state == Qt::Checked) { + if (ui.device->currentText().isEmpty()) { + selectRemoteBluetoothDevice(); + } else { + ui.device->setCurrentIndex(-1); + } + } } #endif