emitupdateStatusString(tr("The waypoint file is not compatible with the current version of QGroundControl."));
//MainWindow::instance()->showCriticalMessage(tr("Error loading waypoint file"),tr("The waypoint file is not compatible with the current version of QGroundControl."));
}else{
while(!in.atEnd()){
}
else
{
while(!in.atEnd())
{
Waypoint*t=newWaypoint();
if(t->load(in)){
if(t->load(in))
{
t->setId(waypoints.size());
waypoints.insert(waypoints.size(),t);
}else{
}
else
{
emitupdateStatusString(tr("The waypoint file is corrupted. Load operation only partly succesful."));