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
c6e64bcd
Commit
c6e64bcd
authored
Jul 31, 2015
by
Lorenz Meier
Browse files
Autopilot airframe plugin: Always offer a valid image
parent
bf1dbe6c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc
View file @
c6e64bcd
...
...
@@ -57,7 +57,11 @@ void AirframeComponentAirframes::insert(QString& group, QString& image, QString&
if
(
!
rgAirframeTypes
.
contains
(
group
))
{
g
=
new
AirframeType_t
;
g
->
name
=
group
;
if
(
image
.
length
()
>
0
)
{
g
->
imageResource
=
QString
(
"qrc:/qmlimages/"
).
append
(
image
);
}
else
{
g
->
imageResource
=
QString
(
"qrc:/qmlimages/AirframeStandardPlane.png"
);
}
qDebug
()
<<
"IMAGE:"
<<
g
->
imageResource
;
rgAirframeTypes
.
insert
(
group
,
g
);
}
else
{
...
...
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