mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:03:23 +00:00
Bluetooth: actually download from the device selected
If we update the device with a shortcut button, this is the reliable way to get the information we need. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8fec97695
commit
8777945d00
1 changed files with 4 additions and 2 deletions
|
@ -368,8 +368,10 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
|
|||
data->setDevName(btDeviceSelectionDialog->getSelectedDeviceAddress());
|
||||
data->setDevBluetoothName(btDeviceSelectionDialog->getSelectedDeviceName());
|
||||
} else {
|
||||
data->setDevName(qPrefDiveComputer::device());
|
||||
data->setDevBluetoothName(qPrefDiveComputer::device_name());
|
||||
QString name, address;
|
||||
address = extractBluetoothNameAddress(ui.device->currentText(), name);
|
||||
data->setDevName(address);
|
||||
data->setDevBluetoothName(name);
|
||||
}
|
||||
} else
|
||||
// this breaks an "else if" across lines... not happy...
|
||||
|
|
Loading…
Add table
Reference in a new issue