QML UI: use the BT address of the first dive computer found

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-05-30 17:49:51 -07:00
parent be271e7d48
commit 782caf5fa6

View file

@ -83,7 +83,12 @@ Kirigami.Page {
text: qsTr("Download")
onClicked: {
text: qsTr("Retry")
manager.appendTextToLog("DCDownloadThread started")
if (downloadThread.deviceData.bluetoothMode) {
var addr = manager.getBtAddress()
if (addr !== "")
downloadThread.deviceData.devName = addr
}
manager.appendTextToLog("DCDownloadThread started from " + downloadThread.deviceData.devName)
downloadThread.start()
}
}