summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-09-07 00:12:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-07 07:29:29 -0700
commita05cf2136ddcd4d1af408d74e63aaa481ca18312 (patch)
tree5ad171010e4c120ccc7caa3a18e2b072b539dd08 /qt-ui/downloadfromdivecomputer.cpp
parent9e97f124c6b5fe4f50ff188f8470c0a5c5cce6b7 (diff)
downloadsubsurface-a05cf2136ddcd4d1af408d74e63aaa481ca18312.tar.gz
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 <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp3
1 files changed, 3 insertions, 0 deletions
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