mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/UI: don't try to set the combobox index
There's no point in doing that - we set the correct text and leave that in the editText and displayText for the combo box. If the user uses the drop down they can replace that. This works correctly for single people, and for multiple people the drop down doesn't work at all, anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1771c39dd8
commit
9d12ad2308
1 changed files with 0 additions and 10 deletions
|
@ -351,17 +351,7 @@ Kirigami.Page {
|
|||
airtemp = modelData.airTemp
|
||||
watertemp = modelData.waterTemp
|
||||
suitIndex = manager.suitList.indexOf(modelData.suit)
|
||||
if (modelData.buddy.indexOf(",") > 0) {
|
||||
buddyIndex = manager.buddyList.indexOf(modelData.buddy.split(",", 1).toString())
|
||||
} else {
|
||||
buddyIndex = manager.buddyList.indexOf(modelData.buddy)
|
||||
}
|
||||
buddyText = modelData.buddy;
|
||||
if (modelData.diveMaster.indexOf(",") > 0) {
|
||||
divemasterIndex = manager.divemasterList.indexOf(modelData.diveMaster.split(",", 1).toString())
|
||||
} else {
|
||||
divemasterIndex = manager.divemasterList.indexOf(modelData.diveMaster)
|
||||
}
|
||||
divemasterText = modelData.diveMaster
|
||||
notes = modelData.notes
|
||||
if (modelData.singleWeight) {
|
||||
|
|
Loading…
Reference in a new issue