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
2847a40e
Unverified
Commit
2847a40e
authored
Nov 21, 2018
by
Don Gagne
Committed by
GitHub
Nov 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7030 from DonLakeFlyer/DoubleLoadShape
Plane: Fix double survey load from shape
parents
cf5a59b8
1b77ef28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
PlanView.qml
src/PlanView/PlanView.qml
+7
-10
No files found.
src/PlanView/PlanView.qml
View file @
2847a40e
...
...
@@ -338,8 +338,13 @@ QGCView {
if
(
retList
[
0
]
==
ShapeFileHelper
.
Error
)
{
_qgcView
.
showMessage
(
"
Error
"
,
retList
[
1
],
StandardButton
.
Ok
)
}
else
if
(
retList
[
0
]
==
ShapeFileHelper
.
Polygon
)
{
var
editVehicle
=
_activeVehicle
?
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
offlineEditingVehicle
if
(
editVehicle
.
fixedWing
)
{
insertComplexMissionItemFromKMLOrSHP
(
_missionController
.
surveyComplexItemName
,
file
,
-
1
)
}
else
{
polygonSelectPatternFile
=
file
_qgcView
.
showDialog
(
patternPolygonSelectDialog
,
fileDialog
.
title
,
_qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
}
}
else
if
(
retList
[
0
]
==
ShapeFileHelper
.
Polyline
)
{
insertComplexMissionItemFromKMLOrSHP
(
_missionController
.
corridorScanComplexItemName
,
file
,
-
1
)
}
...
...
@@ -353,14 +358,6 @@ QGCView {
id
:
patternPolygonSelectDialog
QGCViewDialog
{
Component.onCompleted
:
{
var
editVehicle
=
_activeVehicle
?
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
offlineEditingVehicle
if
(
editVehicle
.
fixedWing
)
{
surveyRadio
.
checked
=
true
accept
()
}
}
function
accept
()
{
var
complexItemName
if
(
surveyRadio
.
checked
)
{
...
...
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