Commit 307414c0 authored by Don Gagne's avatar Don Gagne

Fix crash on delete

parent 2fcdda7f
......@@ -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));
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