diff options
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1680,14 +1680,15 @@ static GError *setup_uemis_import(device_data_t *data) error = uemis_download(data->devname, &uemis_max_dive_data, &buf, &data->progress, data->force_download); if (buf && strlen(buf) > 1) { -#ifdef DEBUGFILE +#if UEMIS_DEBUG > 3 fprintf(debugfile, "xml buffer \"%s\"\n\n", buf); #endif parse_xml_buffer("Uemis Download", buf, strlen(buf), &error); set_uemis_last_dive(uemis_max_dive_data); -#if UEMIS_DEBUG +#if UEMIS_DEBUG > 2 fprintf(debugfile, "uemis_max_dive_data: %s\n", uemis_max_dive_data); #endif + mark_divelist_changed(TRUE); } return error; } @@ -1819,6 +1820,7 @@ repeat: *ne = '\0'; devicedata.devname = ns; devicedata.force_download = force_download; + force_download = FALSE; /* when retrying we don't want to restart */ info = import_dive_computer(&devicedata, GTK_DIALOG(dialog)); free((void *)devname); if (info) |