Commit c08c23a3 authored by Gus Grubba's avatar Gus Grubba

Dismiss dialogs when clicking an item off the toolstrip.

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