Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
10954660
Commit
10954660
authored
May 07, 2017
by
DonLakeFlyer
Browse files
Fixed support for closing all guided dialogs
parent
c9bd4917
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/FlightDisplayView.qml
View file @
10954660
...
...
@@ -482,11 +482,7 @@ QGCView {
]
onClicked
:
{
//-- Dismiss any other dialog
rootLoader
.
sourceComponent
=
null
guidedActionConfirm
.
visible
=
false
guidedActionList
.
visible
=
false
altitudeSlider
.
visible
=
false
guidedActionsController
.
closeAll
()
var
action
=
model
[
index
].
action
if
(
action
===
-
1
)
{
if
(
index
==
4
)
{
...
...
@@ -531,6 +527,14 @@ QGCView {
confirmAction
(
actionLandAbort
)
}
}
/// Close all dialogs
function
closeAll
()
{
rootLoader
.
sourceComponent
=
null
guidedActionConfirm
.
visible
=
false
guidedActionList
.
visible
=
false
altitudeSlider
.
visible
=
false
}
}
GuidedActionConfirm
{
...
...
src/FlightDisplay/GuidedActionsController.qml
View file @
10954660
...
...
@@ -123,6 +123,7 @@ Item {
// Called when an action is about to be executed in order to confirm
function
confirmAction
(
actionCode
,
actionData
)
{
closeAll
()
confirmDialog
.
action
=
actionCode
confirmDialog
.
actionData
=
actionData
_actionData
=
actionData
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment