From 40ecb179a3f530907ceca6d833e93f5f9cf6e204 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Aug 2018 16:09:06 -0700 Subject: [PATCH] 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()