From a05cf2136ddcd4d1af408d74e63aaa481ca18312 Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Mon, 7 Sep 2015 00:12:00 +0300 Subject: Reset the index of the device if the Bth mode is disabled If the Bluetooth download mode was disabled then remove the Bth address from the device or mount point section and reset the index. Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 63866d420..f2378d5ec 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -572,8 +572,11 @@ void DownloadFromDCWidget::bluetoothSelectionDialogIsFinished(int result) void DownloadFromDCWidget::enableBluetoothMode(int state) { ui.chooseBluetoothDevice->setEnabled(state == Qt::Checked); + if (state == Qt::Checked) selectRemoteBluetoothDevice(); + else + ui.device->setCurrentIndex(-1); } #endif -- cgit v1.2.3-70-g09d2