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>
This commit is contained in:
Dirk Hohndel 2018-08-08 16:09:06 -07:00
parent 1a7ada5a90
commit 40ecb179a3

View file

@ -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()