diff --git a/src/MissionManager/TransectStyleComplexItem.cc b/src/MissionManager/TransectStyleComplexItem.cc index 5a303552419..cceb492f476 100644 --- a/src/MissionManager/TransectStyleComplexItem.cc +++ b/src/MissionManager/TransectStyleComplexItem.cc @@ -309,7 +309,10 @@ bool TransectStyleComplexItem::_load(const QJsonObject& complexObject, bool forP } } - if (!forPresets) { + if (forPresets) { + // Most signalling will happen after the transects are rebuilt so we don't over signal here + emit followTerrainChanged(_followTerrain); + } else { emit minAMSLAltitudeChanged(); emit maxAMSLAltitudeChanged(); _amslEntryAltChanged(); diff --git a/src/PlanView/TransectStyleComplexItemTerrainFollow.qml b/src/PlanView/TransectStyleComplexItemTerrainFollow.qml index 36feddaa83e..9a228b8fd73 100644 --- a/src/PlanView/TransectStyleComplexItemTerrainFollow.qml +++ b/src/PlanView/TransectStyleComplexItemTerrainFollow.qml @@ -21,6 +21,10 @@ ColumnLayout { text: qsTr("Vehicle follows terrain") checked: missionItem.followTerrain onClicked: missionItem.followTerrain = checked + + Binding on checkedState { + value: missionItem.followTerrain ? Qt.Checked : Qt.Unchecked + } } GridLayout {