mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
93ba8f1a05
commit
07fb1db3ad
2 changed files with 4 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue