From 782caf5fa6b983658d9119db9b36c24b1522dc0b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 30 May 2017 17:49:51 -0700 Subject: QML UI: use the BT address of the first dive computer found Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 6a2f72317..3a5cf6618 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -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() } } -- cgit v1.2.3-70-g09d2