diff options
author | Claudiu Olteanu <olteanu.claudiu@ymail.com> | 2015-09-07 00:12:00 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-07 07:29:29 -0700 |
commit | a05cf2136ddcd4d1af408d74e63aaa481ca18312 (patch) | |
tree | 5ad171010e4c120ccc7caa3a18e2b072b539dd08 /qt-ui/downloadfromdivecomputer.cpp | |
parent | 9e97f124c6b5fe4f50ff188f8470c0a5c5cce6b7 (diff) | |
download | subsurface-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.cpp | 3 |
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 |