Commit 688fda8d authored by Lorenz Meier's avatar Lorenz Meier

Merge branch 'master' into thread_test

parents 6e9ac2fc 559931f3
......@@ -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