summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/DiveDetails.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index e6862ac6a..a94de4f51 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -229,9 +229,9 @@ Kirigami.Page {
}
}
- function showDiveIndex(index) {
- currentIndex = index;
- diveDetailsListView.positionViewAtIndex(index, ListView.End);
+ function showDiveIndex(id) {
+ currentIndex = diveModel.getIdxForId(id);
+ diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End);
}
function endEditMode() {