From 6422079de59de580740e860994eb46b123baf2a1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 7 Oct 2019 16:42:33 -0500 Subject: Mobile: when selecting dive via map, update details view We updated the selected dive in the dive list, but not the one shown in the details view. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index e6b557efe..f94b93042 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -613,6 +613,7 @@ Kirigami.ScrollablePage { function setCurrentDiveListIndex(idx, noScroll) { diveListView.currentIndex = idx + detailsWindow.showDiveIndex(idx) // updating the index of the ListView triggers a non-linear scroll // animation that can be very slow. the fix is to stop this animation // by setting contentY to itself and then using positionViewAtIndex(). -- cgit v1.2.3-70-g09d2