summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 5a732b73f..dfe254143 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -366,7 +366,14 @@ Kirigami.Page {
text: qsTr("Rescan")
enabled: manager.btEnabled
onClicked: {
+ // refresh both USB and BT/BLE and make sure a reasonable entry is selected
+ var current = comboConnection.currentText
manager.rescanConnections()
+ // check if the same entry is still available; if not pick the first entry
+ var idx = comboConnection.find(current)
+ if (idx === -1)
+ idx = 0
+ comboConnection.currentIndex = idx
}
}