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.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index dfe254143..4fbeb525b 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -157,6 +157,16 @@ Kirigami.Page {
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
+ onCountChanged: {
+ // ensure that pick the first entry once we have any
+ // entries in the connection list
+ if (count === 0)
+ currentIndex = -1
+ else if (currentIndex === -1)
+ currentIndex = 0
+
+ }
+
onCurrentTextChanged: {
var curVendor
var curProduct