Mobile: return dive-id directly from DiveListModel
We don't want to generate a DiveObjectHelper numerous times for every item in the dive list. Therefore, return this datum directly from the model. In this case, don't remove from DiveObjectHelper, as this datum might be used by grantlee templates. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
committed by
bstoeger
parent
c6b3309d13
commit
bf081866e9
@@ -229,11 +229,11 @@ Kirigami.ScrollablePage {
|
||||
copyButtonVisible = false
|
||||
pasteButtonVisible = false
|
||||
timer.stop()
|
||||
manager.copyDiveData(dive.id)
|
||||
manager.copyDiveData(id)
|
||||
}
|
||||
onPressAndHold: {
|
||||
globalDrawer.close()
|
||||
manager.copyDiveData(dive.id)
|
||||
manager.copyDiveData(id)
|
||||
pageStack.push(settingsCopyWindow)
|
||||
}
|
||||
}
|
||||
@@ -270,7 +270,7 @@ Kirigami.ScrollablePage {
|
||||
copyButtonVisible = false
|
||||
pasteButtonVisible = false
|
||||
timer.stop()
|
||||
manager.pasteDiveData(dive.id)
|
||||
manager.pasteDiveData(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -307,7 +307,7 @@ Kirigami.ScrollablePage {
|
||||
copyButtonVisible = false
|
||||
pasteButtonVisible = false
|
||||
timer.stop()
|
||||
manager.deleteDive(dive.id)
|
||||
manager.deleteDive(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user