diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-18 15:47:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-18 17:05:45 -0700 |
commit | 10842b3eb3ffd281d740abfb8611b741f6c9acf9 (patch) | |
tree | 50c8c5b6c37da6416c17d580e39330589c880a85 /mobile-widgets | |
parent | dd1d90b5295b146e85ebc4199e3640b4c2e9f2c8 (diff) | |
download | subsurface-10842b3eb3ffd281d740abfb8611b741f6c9acf9.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 8 |
1 files changed, 0 insertions, 8 deletions
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 { |