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
@ -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…
x
Reference in New Issue
Block a user