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
307414c0
Commit
307414c0
authored
Feb 26, 2016
by
Don Gagne
Browse files
Fix crash on delete
parent
2fcdda7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/MissionController.cc
View file @
307414c0
...
...
@@ -223,7 +223,7 @@ void MissionController::removeMissionItem(int index)
index
--
;
}
for
(
int
i
=
0
;
i
<
_visualItems
->
count
();
i
++
)
{
MissionItem
*
item
=
qobject_cast
<
MissionItem
*>
(
_visualItems
->
get
(
i
));
Visual
MissionItem
*
item
=
qobject_cast
<
Visual
MissionItem
*>
(
_visualItems
->
get
(
i
));
item
->
setIsCurrentItem
(
i
==
index
);
}
_visualItems
->
setDirty
(
true
);
...
...
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