diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-05-30 17:49:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-31 10:14:24 -0700 |
commit | 782caf5fa6b983658d9119db9b36c24b1522dc0b (patch) | |
tree | d65558dcf42860fd9fc16b420258acaf7512f3d5 /mobile-widgets/qml/DownloadFromDiveComputer.qml | |
parent | be271e7d4860a360081162edeafb76c3fd40d3da (diff) | |
download | subsurface-782caf5fa6b983658d9119db9b36c24b1522dc0b.tar.gz |
QML UI: use the BT address of the first dive computer found
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 7 |
1 files changed, 6 insertions, 1 deletions
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() } } |