Commit 559931f3 authored by Lorenz Meier's avatar Lorenz Meier

Guard against system with waypoints already loaded

parent 99d187a4
......@@ -390,13 +390,15 @@ void WaypointList::currentWaypointEditableChanged(quint16 seq)
{
WaypointEditableView* widget = wpEditableViews.find(waypoints[i]).value();
if (waypoints[i]->getId() == seq)
{
widget->setCurrent(true);
}
else
{
widget->setCurrent(false);
if (widget) {
if (waypoints[i]->getId() == seq)
{
widget->setCurrent(true);
}
else
{
widget->setCurrent(false);
}
}
}
}
......
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