Commit 63156fc4 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix crash

parent 6e57a50a
......@@ -200,11 +200,11 @@ DropButton {
QGCButton {
text: qsTr("Current Location")
Layout.fillWidth: true
enabled: mainWindow.gcsPosition && mainWindow.gcsPosition.isValid && !followVehicleCheckBox.checked
enabled: map.gcsPosition ? map.gcsPosition.isValid && !followVehicleCheckBox.checked : false
onClicked: {
dropButton.hideDropDown()
map.center = mainWindow.gcsPosition
map.center = map.gcsPosition
}
}
......
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