Commit fb4d4aa1 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #4983 from dogmaphobic/dismissDialog

Dismiss dialogs when clicking a button on the toolstrip.
parents d1e85330 c08c23a3
......@@ -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 {
......
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