Commit 0137a2fb authored by Don Gagne's avatar Don Gagne

Merge pull request #2902 from DonLakeFlyer/PlanDeleteCrash

Plane: Fix crash on delete
parents 07aed8ff 307414c0
......@@ -239,7 +239,7 @@ void MissionController::removeMissionItem(int index)
index--;
}
for (int i=0; i<_visualItems->count(); i++) {
MissionItem* item = qobject_cast<MissionItem*>(_visualItems->get(i));
VisualMissionItem* item = qobject_cast<VisualMissionItem*>(_visualItems->get(i));
item->setIsCurrentItem(i == index);
}
_visualItems->setDirty(true);
......
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