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
44987026
Commit
44987026
authored
Sep 28, 2010
by
lm
Browse files
Fixed null-pointer issue for remote target if no MAV is connected
parent
ab3a1ec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/map3D/QMap3DWidget.cc
View file @
44987026
...
...
@@ -268,7 +268,7 @@ QMap3DWidget::mouseHandler(Qt::MouseButton button, MouseState state,
if
(
button
==
Qt
::
RightButton
&&
state
==
MOUSE_STATE_DOWN
)
{
QMenu
menu
(
this
);
QAction
*
targetAction
=
menu
.
addAction
(
"Mark as Target"
);
QAction
*
targetAction
=
menu
.
addAction
(
tr
(
"Mark as Target"
)
)
;
connect
(
targetAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
markTarget
()));
menu
.
exec
(
mapToGlobal
(
QPoint
(
x
,
y
)));
}
...
...
@@ -339,7 +339,7 @@ QMap3DWidget::markTarget(void)
displayTarget
=
true
;
uas
->
setTargetPosition
(
targetPosition
.
x
,
targetPosition
.
y
,
if
(
uas
)
uas
->
setTargetPosition
(
targetPosition
.
x
,
targetPosition
.
y
,
targetPosition
.
z
,
0.0
f
);
}
...
...
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