Browse Source

Merge pull request #4983 from dogmaphobic/dismissDialog

Dismiss dialogs when clicking a button on the toolstrip.
QGC4.4
Gus Grubba 8 years ago committed by GitHub
parent
commit
fb4d4aa17a
  1. 10
      src/FlightDisplay/FlightDisplayView.qml

10
src/FlightDisplay/FlightDisplayView.qml

@ -487,16 +487,18 @@ QGCView { @@ -487,16 +487,18 @@ QGCView {
]
onClicked: {
//-- Dismiss any other dialog
rootLoader.sourceComponent = null
guidedActionConfirm.visible = false
guidedActionList.visible = false
altitudeSlider.visible = false
guidedActionList.visible = false
altitudeSlider.visible = false
var action = model[index].action
if (action === -1) {
if (index == 4) {
guidedActionList.model = _actionModel
guidedActionList.model = _actionModel
guidedActionList.visible = true
} else if (index == 5) {
guidedActionList.model = _smartShotModel
guidedActionList.model = _smartShotModel
guidedActionList.visible = true
}
} else {

Loading…
Cancel
Save