Browse Source

Missed in conflicted merge

This is to toggle off help view when clicking on items on the map and checking the appropriate buttons accordingly.
QGC4.4
dogmaphobic 10 years ago
parent
commit
bc61e579b1
  1. 14
      src/MissionEditor/MissionEditor.qml

14
src/MissionEditor/MissionEditor.qml

@ -375,7 +375,19 @@ QGCView { @@ -375,7 +375,19 @@ QGCView {
visible: object.specifiesCoordinate
onClicked: {
_showHomePositionManager = false
disableToggles()
if (_dropButtonsExclusiveGroup.current) {
_dropButtonsExclusiveGroup.current.checked = false
}
//-- Home?
if (object.sequenceNumber === 0) {
homePositionManagerButton.checked = true
_showHomePositionManager = true
//-- Otherwise it's a mission item
} else {
addMissionItemsButton.checked = true
_addMissionItems = true
}
setCurrentItem(object.sequenceNumber)
}

Loading…
Cancel
Save