diff options
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 541d1d0c0..86ca5ea63 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -230,7 +230,7 @@ Kirigami.Page { } function showDiveIndex(id) { - currentIndex = diveModel.getIdxForId(id); + currentIndex = swipeModel.getIdxForId(id); diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End); } @@ -307,7 +307,7 @@ Kirigami.Page { ListView { id: diveDetailsListView anchors.fill: parent - model: diveModel + model: swipeModel currentIndex: -1 boundsBehavior: Flickable.StopAtBounds maximumFlickVelocity: parent.width * 5 @@ -335,7 +335,7 @@ Kirigami.Page { } ScrollIndicator.horizontal: ScrollIndicator { } Connections { - target: diveModel + target: swipeModel onCurrentDiveChanged: { currentIndex = index.row diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End) |