Commit f233ac53 authored by Gus Grubba's avatar Gus Grubba
Browse files

Moving Add New Set as a sibling of Map rather than a child.

parent 2673ed92
...@@ -200,7 +200,7 @@ DropButton { ...@@ -200,7 +200,7 @@ DropButton {
QGCButton { QGCButton {
text: qsTr("Current Location") text: qsTr("Current Location")
Layout.fillWidth: true Layout.fillWidth: true
enabled: mainWindow.gcsPosition.isValid && !followVehicleCheckBox.checked enabled: mainWindow.gcsPosition && mainWindow.gcsPosition.isValid && !followVehicleCheckBox.checked
onClicked: { onClicked: {
dropButton.hideDropDown() dropButton.hideDropDown()
......
...@@ -178,7 +178,7 @@ Rectangle { ...@@ -178,7 +178,7 @@ Rectangle {
anchors.rightMargin: _margins anchors.rightMargin: _margins
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: missionController.dirty ? qsTr("Upload Required") : qsTr("Upload") text: missionController ? (missionController.dirty ? qsTr("Upload Required") : qsTr("Upload")) : ""
enabled: _activeVehicle enabled: _activeVehicle
visible: _manualUpload visible: _manualUpload
onClicked: missionController.upload() onClicked: missionController.upload()
......
Supports Markdown
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