From 9d12ad23082b9d3bd0e6f87c803cd262864ab2e0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Dec 2020 12:34:21 -0800 Subject: 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 --- mobile-widgets/qml/DiveDetails.qml | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'mobile-widgets') 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) { -- cgit v1.2.3-70-g09d2