Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
10954660
Commit
10954660
authored
May 07, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed support for closing all guided dialogs
parent
c9bd4917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+9
-5
GuidedActionsController.qml
src/FlightDisplay/GuidedActionsController.qml
+1
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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