summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-07 16:42:33 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-13 11:32:27 -0700
commit6422079de59de580740e860994eb46b123baf2a1 (patch)
tree79f785a9f8fa4d7e4ac5486c048b5571b7ec397d /mobile-widgets/qml/DiveList.qml
parentb07a1cc8b61d1e3d2beb3180dffe6fef621f7e55 (diff)
downloadsubsurface-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.qml1
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().