Fix jumping aircraft list when editing ratings
This commit is contained in:
parent
9dc1c1bbcf
commit
f9e113d811
2 changed files with 7 additions and 1 deletions
|
@ -80,7 +80,7 @@ Item
|
|||
AircraftRatingsPanel {
|
||||
width: aircraftList.width - Style.strutSize * 2
|
||||
x: (aircraftList.width - width) / 2
|
||||
|
||||
theList: aircraftList
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ import "."
|
|||
|
||||
ListHeaderBox
|
||||
{
|
||||
property ListView theList: null
|
||||
|
||||
contents: [
|
||||
|
||||
ToggleSwitch {
|
||||
|
@ -35,7 +37,11 @@ ListHeaderBox
|
|||
text: qsTr("Adjust minimum ratings")
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: {
|
||||
// clear selection so we don't jump to the selected item
|
||||
// each time the proxy model changes.
|
||||
theList.currentIndex = -1;
|
||||
editRatingsPanel.visible = true
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue