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
|
|
@ -26,6 +26,7 @@ Kirigami.Page {
|
|||
property alias duration: detailsEdit.durationText
|
||||
property alias location: detailsEdit.locationText
|
||||
property alias locationModel: detailsEdit.locationModel
|
||||
property alias locationIndex: detailsEdit.locationIndex
|
||||
property alias gps: detailsEdit.gpsText
|
||||
property alias notes: detailsEdit.notesText
|
||||
property alias suitIndex: detailsEdit.suitIndex
|
||||
|
|
@ -234,6 +235,7 @@ Kirigami.Page {
|
|||
number = currentItem.modelData.dive.number
|
||||
date = currentItem.modelData.dive.date + " " + currentItem.modelData.dive.time
|
||||
location = currentItem.modelData.dive.location
|
||||
locationIndex = manager.locationList.indexOf(currentItem.modelData.dive.location)
|
||||
gps = currentItem.modelData.dive.gps
|
||||
gpsCheckbox = false
|
||||
duration = currentItem.modelData.dive.duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue