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.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 66504c866..05a549227 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -53,13 +53,14 @@ Kirigami.Page {
GridLayout {
columns: 2
Kirigami.Label { text: qsTr(" Vendor name: ") }
+ property var vendoridx: downloadThread.data().getDetectedVendorIndex("")
ComboBox {
id: comboVendor
Layout.fillWidth: true
model: vendorList
- currentIndex: downloadThread.data().getDetectedVendorIndex(currentText)
+ currentIndex: parent.vendoridx
onCurrentTextChanged: {
- comboProduct.model = downloadThread.data().getProductListFromVendor(comboVendor.currentText)
+ comboProduct.model = downloadThread.data().getProductListFromVendor(currentText)
if (currentIndex == downloadThread.data().getDetectedVendorIndex(currentText))
comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText, comboProduct.currentText)
}
@@ -67,9 +68,13 @@ Kirigami.Page {
Kirigami.Label { text: qsTr(" Dive Computer:") }
ComboBox {
id: comboProduct
+ property var productidx: downloadThread.data().getDetectedProductIndex(comboVendor.currentText, currentText)
Layout.fillWidth: true
model: null
- currentIndex: -1
+ currentIndex: productidx
+ onModelChanged: {
+ currentIndex = productidx
+ }
}
Kirigami.Label { text: qsTr("Bluetooth download:") }
CheckBox {