Commit b20e14f9 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix altitude change signalling

parent 6e2c8109
...@@ -56,14 +56,21 @@ Rectangle { ...@@ -56,14 +56,21 @@ Rectangle {
recalcRelativeIndex() recalcRelativeIndex()
} }
Component.onCompleted: valueListView.maximumFlickVelocity = valueListView.maximumFlickVelocity / 2 Component.onCompleted: {
valueListView.maximumFlickVelocity = valueListView.maximumFlickVelocity / 2
reset()
}
Connections {
target: _fact
onValueChanged: reset()
}
Component { Component {
id: editDialogComponent id: editDialogComponent
ParameterEditorDialog { ParameterEditorDialog {
fact: _fact fact: _fact
onValueChanged: reset()
} }
} }
...@@ -75,8 +82,6 @@ Rectangle { ...@@ -75,8 +82,6 @@ Rectangle {
clip: true clip: true
model: _model model: _model
Component.onCompleted: reset()
delegate: QGCLabel { delegate: QGCLabel {
width: _itemWidth width: _itemWidth
height: _itemHeight height: _itemHeight
......
...@@ -918,7 +918,7 @@ void SimpleMissionItem::applyNewAltitude(double newAltitude) ...@@ -918,7 +918,7 @@ void SimpleMissionItem::applyNewAltitude(double newAltitude)
// Leave alone // Leave alone
break; break;
default: default:
_missionItem.setParam7(newAltitude); _altitudeFact.setRawValue(newAltitude);
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment