diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-30 12:34:21 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-01 11:35:39 -0800 |
commit | 9d12ad23082b9d3bd0e6f87c803cd262864ab2e0 (patch) | |
tree | 31afc23ff0a9b24100cfb227b9f7d5922e76ad66 /mobile-widgets/qml | |
parent | 1771c39dd8ae06bfc35393e2028d01c1ec4bc978 (diff) | |
download | subsurface-9d12ad23082b9d3bd0e6f87c803cd262864ab2e0.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 86b069444..e505d7bc1 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -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) { |