mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: fix variable reference
Looks like commit 807571a588
("core: update deviceData default from
qml") never actually was tested with dive computer download. This looks
rather like an automatic renaming gone wrong.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
076419d757
commit
16d7620e21
1 changed files with 6 additions and 6 deletions
|
@ -152,10 +152,10 @@ Kirigami.Page {
|
||||||
btAddr = /\{?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}/;
|
btAddr = /\{?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}/;
|
||||||
|
|
||||||
if (btAddr.test(currentText))
|
if (btAddr.test(currentText))
|
||||||
downloadThread.manager.DC_bluetoothMode = true
|
manager.DC_bluetoothMode = true
|
||||||
else
|
else
|
||||||
downloadThread.manager.DC_bluetoothMode = false
|
manager.DC_bluetoothMode = false
|
||||||
downloadThread.manager.DC_devName = comboConnection.currentText
|
manager.DC_devName = comboConnection.currentText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,9 +186,9 @@ Kirigami.Page {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
text = qsTr("Retry")
|
text = qsTr("Retry")
|
||||||
// strip any BT Name from the address
|
// strip any BT Name from the address
|
||||||
var devName = downloadThread.manager.devName
|
var devName = manager.DC_devName
|
||||||
downloadThread.manager.devName = devName.replace(/^(.*) /, "")
|
manager.DC_devName = devName.replace(/^(.*) /, "")
|
||||||
manager.appendTextToLog("DCDownloadThread started for " + downloadThread.manager.product + " on "+ downloadThread.manager.devName)
|
manager.appendTextToLog("DCDownloadThread started for " + manager.product + " on "+ manager.DC_devName)
|
||||||
progressBar.visible = true
|
progressBar.visible = true
|
||||||
downloadThread.start()
|
downloadThread.start()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue