--- trunk/src/main.c 2009/11/17 20:13:09 193 +++ trunk/src/main.c 2009/11/23 18:32:06 204 @@ -155,15 +155,15 @@ gpx_dialog_t *dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window)); if(!whole_dir) - gpx = gpx_parse(dialog, filename); + gpx = gpx_parse(dialog, filename, appdata->username); else { /* cur trailing '/' if present */ if(strlastchr(filename) == '/') filename[strlen(filename)] = 0; - gpx = gpx_parse_dir(dialog, filename); + gpx = gpx_parse_dir(dialog, filename, appdata->username); } - + gpx_busy_dialog_destroy(dialog); /* save path if gpx was successfully loaded */ @@ -477,7 +477,7 @@ int type = (cache->type<<8) + (cache->notes?4:0) + ((cache->notes && cache->notes->override)?1:0) + - ((cache->notes && cache->notes->found)?2:0); + (((cache->notes && cache->notes->found)||cache->found)?2:0); if((!(type & 2)) || !appdata->cachelist_hide_found) { @@ -864,9 +864,9 @@ gpx_t *new = NULL; if(g_file_test(gpx->filename, G_FILE_TEST_IS_DIR)) - new = gpx_parse_dir(dialog, gpx->filename); + new = gpx_parse_dir(dialog, gpx->filename, appdata->username); else - new = gpx_parse(dialog, gpx->filename); + new = gpx_parse(dialog, gpx->filename, appdata->username); if(new) { gpx_t **prev = &(appdata->gpx);