aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml18
1 files changed, 4 insertions, 14 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 9086a2e0f..4c5349f10 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -157,20 +157,10 @@ Kirigami.Page {
}
onClicked: {
text = qsTr("Retry")
- if (downloadThread.deviceData.bluetoothMode) {
- var addr = downloadThread.data().getDetectedDeviceAddress(comboVendor.currentText,
- comboProduct.currentText)
- if (addr !== "")
- downloadThread.deviceData.devName = addr
- var vendor = downloadThread.deviceData.getDeviceDescriptorVendor(comboVendor.currentText,
- comboProduct.currentText)
- downloadThread.deviceData.vendor = vendor;
-
- var product = downloadThread.deviceData.getDeviceDescriptorProduct(comboVendor.currentText,
- comboProduct.currentText)
- downloadThread.deviceData.product = product;
- }
- manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.devName)
+ // strip any BT Name from the address
+ var devName = downloadThread.deviceData.devName
+ downloadThread.deviceData.devName = devName.replace(/ (.*)$/, "")
+ manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.product + " on "+ downloadThread.deviceData.devName)
progressBar.visible = true
downloadThread.start()
}