Commit 63156fc4 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix crash

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