From 10842b3eb3ffd281d740abfb8611b741f6c9acf9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 18 Mar 2017 15:47:49 -0700 Subject: QML UI: don't unset the currentIndex in the dive list It's unclear why this code was added in the first place - removing it makes the highlight of the selected dive in the dive list work. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 59a23fe63..fc7e114fc 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -275,14 +275,6 @@ Kirigami.ScrollablePage { target: detailsWindow onCurrentIndexChanged: diveListView.currentIndex = detailsWindow.currentIndex } - Connections { - target: stackView - onDepthChanged: { - if (stackView.depth === 1) { - diveListView.currentIndex = -1; - } - } - } } property QtObject addDiveAction: Action { -- cgit v1.2.3-70-g09d2