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>
This commit is contained in:
Dirk Hohndel 2017-03-18 15:47:49 -07:00
parent dd1d90b529
commit 10842b3eb3

View file

@ -275,14 +275,6 @@ Kirigami.ScrollablePage {
target: detailsWindow target: detailsWindow
onCurrentIndexChanged: diveListView.currentIndex = detailsWindow.currentIndex onCurrentIndexChanged: diveListView.currentIndex = detailsWindow.currentIndex
} }
Connections {
target: stackView
onDepthChanged: {
if (stackView.depth === 1) {
diveListView.currentIndex = -1;
}
}
}
} }
property QtObject addDiveAction: Action { property QtObject addDiveAction: Action {