diff options
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index c4dc70790..b05c1fc9f 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -58,13 +58,18 @@ Kirigami.Page { Layout.fillWidth: true model: vendorList currentIndex: manager.getVendorIndex() + onCurrentTextChanged: { + comboProduct.model = manager.getDCListFromVendor(comboVendor.currentText) + if (currentIndex == manager.getVendorIndex()) + comboProduct.currentIndex = manager.getProductIndex() + } } Kirigami.Label { text: qsTr(" Dive Computer:") } ComboBox { id: comboProduct Layout.fillWidth: true - model: manager.getDCListFromVendor(comboVendor.currentText) - currentIndex: manager.getProductIndex() + model: null + currentIndex: -1 } Kirigami.Label { text: qsTr("Bluetooth download:") } CheckBox { |