232 |
else |
else |
233 |
*gpx = gpx_parse(dialog, fname); |
*gpx = gpx_parse(dialog, fname); |
234 |
|
|
235 |
free(fname); |
if(!*gpx) { |
236 |
|
/* restoring the gpx file failed, mark it as unusable, but save */ |
237 |
|
/* its presence for later use */ |
238 |
|
|
239 |
|
/* create fake entry to remember this file for next load attempt */ |
240 |
|
*gpx = g_new0(gpx_t, 1); |
241 |
|
(*gpx)->filename = fname; |
242 |
|
(*gpx)->failed = TRUE; |
243 |
|
} else |
244 |
|
free(fname); |
245 |
} |
} |
246 |
} |
} |
247 |
|
|
248 |
/* use next gpx entry of this was loaded successfully */ |
gpx = &((*gpx)->next); |
|
if(*gpx) |
|
|
gpx = &((*gpx)->next); |
|
249 |
} |
} |
250 |
|
|
251 |
gpx_busy_dialog_destroy(dialog); |
gpx_busy_dialog_destroy(dialog); |