Commit b5d86976 authored by Don Gagne's avatar Don Gagne

Merge pull request #1498 from SnoozeTime/master

Fixed the load waypoint bug - points from the list out of sync with points on the map
parents 715e4c08 7a48398d
......@@ -585,8 +585,11 @@ void UASWaypointManager::loadWaypoints(const QString &loadFile)
Waypoint *t = new Waypoint();
if(t->load(in))
{
t->setId(waypointsEditable.count());
waypointsEditable.insert(waypointsEditable.count(), t);
//Use the existing function to add waypoints to the map instead of doing it manually
//Indeed, we should connect our waypoints to the map in order to synchronize them
//t->setId(waypointsEditable.count());
// waypointsEditable.insert(waypointsEditable.count(), t);
addWaypointEditable(t, false);
}
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