mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile cleanup: unduplicate code and do not loop over dives (2)
See e6e1473e6
. Exact same commit but here for the
list of buddies.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
fed2c5b6a1
commit
572fc47071
7 changed files with 9 additions and 50 deletions
|
@ -18,7 +18,6 @@ Kirigami.Page {
|
|||
property alias watertemp: detailsEdit.watertempText
|
||||
property alias buddyIndex: detailsEdit.buddyIndex
|
||||
property alias buddyText: detailsEdit.buddyText
|
||||
property alias buddyModel: detailsEdit.buddyModel
|
||||
property alias divemasterIndex: detailsEdit.divemasterIndex
|
||||
property alias divemasterText: detailsEdit.divemasterText
|
||||
property alias divemasterModel: detailsEdit.divemasterModel
|
||||
|
@ -240,7 +239,7 @@ Kirigami.Page {
|
|||
if (currentItem.modelData.dive.buddy.indexOf(",") > 0) {
|
||||
buddyText = currentItem.modelData.dive.buddy;
|
||||
} else {
|
||||
buddyIndex = currentItem.modelData.dive.buddyList.indexOf(currentItem.modelData.dive.buddy)
|
||||
buddyIndex = manager.buddyList.indexOf(currentItem.modelData.dive.buddy)
|
||||
}
|
||||
divemasterIndex = currentItem.modelData.dive.divemasterList.indexOf(currentItem.modelData.dive.divemaster)
|
||||
notes = currentItem.modelData.dive.notes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue