summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetailsEdit.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2018-03-09 14:49:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-03-19 12:01:14 -0700
commit07fb1db3ad5652b7df74f790d1c547a4d9bc3803 (patch)
tree8ae418749a0686291dead3146d68b9137dac3b12 /mobile-widgets/qml/DiveDetailsEdit.qml
parent93ba8f1a050b2700613bfe0c9f106ee4bff7e5bf (diff)
downloadsubsurface-07fb1db3ad5652b7df74f790d1c547a4d9bc3803.tar.gz
Mobile: Fix location combobox
In the initial move to comboboxes the correct location model was not used. This uses the correct model and makes it behave like the other comboboxes. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index 4e3b956f0..d91dfbef8 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -12,6 +12,7 @@ Item {
property int number
property alias dateText: txtDate.text
property alias locationText: txtLocation.editText
+ property alias locationIndex: txtLocation.currentIndex
property alias gpsText: txtGps.text
property alias airtempText: txtAirTemp.text
property alias watertempText: txtWaterTemp.text
@@ -136,7 +137,7 @@ Item {
editable: true
flat: true
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
- diveDetailsListView.currentItem.modelData.dive.locationList : null
+ manager.locationList : null
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true
onAccepted: {