mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Mobile: for multiple buddies pick index of first
When a dive has multiple buddies, pick the index of the first to prevent the user from hanving to scroll through the entire list when editing. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
6badba2bae
commit
93ba8f1a05
1 changed files with 2 additions and 1 deletions
|
@ -242,10 +242,11 @@ Kirigami.Page {
|
|||
watertemp = currentItem.modelData.dive.waterTemp
|
||||
suitIndex = manager.suitList.indexOf(currentItem.modelData.dive.suit)
|
||||
if (currentItem.modelData.dive.buddy.indexOf(",") > 0) {
|
||||
buddyText = currentItem.modelData.dive.buddy;
|
||||
buddyIndex = manager.buddyList.indexOf(currentItem.modelData.dive.buddy.split(",", 1).toString())
|
||||
} else {
|
||||
buddyIndex = manager.buddyList.indexOf(currentItem.modelData.dive.buddy)
|
||||
}
|
||||
buddyText = currentItem.modelData.dive.buddy;
|
||||
divemasterIndex = manager.divemasterList.indexOf(currentItem.modelData.dive.divemaster)
|
||||
notes = currentItem.modelData.dive.notes
|
||||
if (currentItem.modelData.dive.singleWeight) {
|
||||
|
|
Loading…
Add table
Reference in a new issue