mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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>
This commit is contained in:
parent
9e97f124c6
commit
a05cf2136d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue