mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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…
Reference in a new issue