mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
dd1d90b529
commit
10842b3eb3
1 changed files with 0 additions and 8 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue