From 0c410aaf5d0119854877ca6c93d0fff6609d2045 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Aug 2017 12:27:12 -0700 Subject: Adjust signature to match data we need Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index a1567494f..9ff0494c0 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -61,7 +61,7 @@ Kirigami.Page { GridLayout { columns: 2 Kirigami.Label { text: qsTr(" Vendor name: ") } - property var vendoridx: downloadThread.data().getDetectedVendorIndex("") + property var vendoridx: downloadThread.data().getDetectedVendorIndex() ComboBox { id: comboVendor Layout.fillWidth: true @@ -87,14 +87,14 @@ Kirigami.Page { } onCurrentTextChanged: { comboProduct.model = downloadThread.data().getProductListFromVendor(currentText) - if (currentIndex == downloadThread.data().getDetectedVendorIndex(currentText)) - comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText, comboProduct.currentText) + if (currentIndex == downloadThread.data().getDetectedVendorIndex()) + comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText) } } Kirigami.Label { text: qsTr(" Dive Computer:") } ComboBox { id: comboProduct - property var productidx: downloadThread.data().getDetectedProductIndex(comboVendor.currentText, currentText) + property var productidx: downloadThread.data().getDetectedProductIndex(comboVendor.currentText) Layout.fillWidth: true model: null currentIndex: productidx -- cgit v1.2.3-70-g09d2