Commit 7f5c36c7 authored by Don Gagne's avatar Don Gagne

Make dialog go away after command picked

parent 9ae456cb
...@@ -30,6 +30,8 @@ import QGroundControl.ScreenTools 1.0 ...@@ -30,6 +30,8 @@ import QGroundControl.ScreenTools 1.0
import QGroundControl.Palette 1.0 import QGroundControl.Palette 1.0
QGCViewDialog { QGCViewDialog {
id: root
property var missionItem property var missionItem
property var _vehicle: QGroundControl.multiVehicleManager.activeVehicle property var _vehicle: QGroundControl.multiVehicleManager.activeVehicle
...@@ -106,7 +108,7 @@ QGCViewDialog { ...@@ -106,7 +108,7 @@ QGCViewDialog {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
missionItem.command = mavCmdInfo.command missionItem.command = mavCmdInfo.command
accept() root.reject()
} }
} }
} }
......
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