aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-08 16:09:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:14:22 -0700
commit40ecb179a3f530907ceca6d833e93f5f9cf6e204 (patch)
treeaaf97eb7864eadd81422f1033fc7092abcbd8ff4 /mobile-widgets/qml/DownloadFromDiveComputer.qml
parent1a7ada5a904084d32e68eb086b180b9b05e3d02f (diff)
downloadsubsurface-40ecb179a3f530907ceca6d833e93f5f9cf6e204.tar.gz
QML UI: don't mangle 'USB device' as device name
We do strip the user friendly name from BT addresses and this mistakenly mangled 'USB device' to 'device'. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 738ecf675..44822193a 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -189,7 +189,8 @@ Kirigami.Page {
text = qsTr("Retry")
// strip any BT Name from the address
var devName = manager.DC_devName
- manager.DC_devName = devName.replace(/^(.*) /, "")
+ if (devName != qsTr("USB device"))
+ manager.DC_devName = devName.replace(/^(.*) /, "")
manager.appendTextToLog("DCDownloadThread started for " + manager.DC_vendor + " " + manager.DC_product + " on "+ manager.DC_devName)
progressBar.visible = true
downloadThread.start()