summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-16 11:19:49 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-16 11:19:49 +0900
commit16d7620e210da62e644cdf6bee4039c4b7aef9a1 (patch)
tree732031aadfefd48c67e75f750e97c045fed55b78
parent076419d757d42578fc52f59f9feb77cb70ad588f (diff)
downloadsubsurface-16d7620e210da62e644cdf6bee4039c4b7aef9a1.tar.gz
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>
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index feec3aeda..2f488586f 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -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}\}/;
if (btAddr.test(currentText))
- downloadThread.manager.DC_bluetoothMode = true
+ manager.DC_bluetoothMode = true
else
- downloadThread.manager.DC_bluetoothMode = false
- downloadThread.manager.DC_devName = comboConnection.currentText
+ manager.DC_bluetoothMode = false
+ manager.DC_devName = comboConnection.currentText
}
}
}
@@ -186,9 +186,9 @@ Kirigami.Page {
onClicked: {
text = qsTr("Retry")
// strip any BT Name from the address
- var devName = downloadThread.manager.devName
- downloadThread.manager.devName = devName.replace(/^(.*) /, "")
- manager.appendTextToLog("DCDownloadThread started for " + downloadThread.manager.product + " on "+ downloadThread.manager.devName)
+ var devName = manager.DC_devName
+ manager.DC_devName = devName.replace(/^(.*) /, "")
+ manager.appendTextToLog("DCDownloadThread started for " + manager.product + " on "+ manager.DC_devName)
progressBar.visible = true
downloadThread.start()
}