aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-06-05 11:01:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-07 18:43:56 +0200
commit487a4b2c322d0f5c9f8eb4dd5d5f239dbf253abc (patch)
tree36fca76c9a465587cc3f2b68c5a58818baca3584 /mobile-widgets/qml/DownloadFromDiveComputer.qml
parent771bd4bce463e65199e1a065137e479c7d977b36 (diff)
downloadsubsurface-487a4b2c322d0f5c9f8eb4dd5d5f239dbf253abc.tar.gz
mobile: correct comboProduct if model changes
update onModelChanged in comboProduct to read the current index Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 8ee898014..df9faeb4c 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -127,7 +127,7 @@ Kirigami.Page {
}
onModelChanged: {
- currentIndex = productidx
+ currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText)
}
}
Controls.Label { text: qsTr(" Connection:") }