diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-07 16:42:33 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-13 11:32:27 -0700 |
commit | 6422079de59de580740e860994eb46b123baf2a1 (patch) | |
tree | 79f785a9f8fa4d7e4ac5486c048b5571b7ec397d /mobile-widgets/qml/DiveList.qml | |
parent | b07a1cc8b61d1e3d2beb3180dffe6fef621f7e55 (diff) | |
download | subsurface-6422079de59de580740e860994eb46b123baf2a1.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 1 |
1 files changed, 1 insertions, 0 deletions
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(). |