Commit b15835f7 authored by DonLakeFlyer's avatar DonLakeFlyer

Don't show resume mission if mission completed

parent c64082ad
......@@ -1482,7 +1482,7 @@ int MissionController::resumeMissionIndex(void) const
if (!_editMode) {
resumeIndex = _activeVehicle->missionManager()->lastCurrentIndex() + (_activeVehicle->firmwarePlugin()->sendHomePositionToVehicle() ? 0 : 1);
if (resumeIndex > 1) {
if (resumeIndex > 1 && resumeIndex != _visualItems->value<VisualMissionItem*>(_visualItems->count() - 1)->sequenceNumber()) {
// Resume at the item previous to the item we were heading towards
resumeIndex--;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment