From cdbdf40848d46a1210d6c47f0b51c7f0be8f57b2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 19 Nov 2012 16:13:05 -0800 Subject: Clear 'force' flag when retrying download This may seem like an esoteric corner case, but it will actually happen reliably when re-downloading dives from the Uemis SDA: If the user selects "Force downloada of all dives" in the "Download from divecomputer" dialog and if the SDA runs out of space and needs to be unmounted and remounted, then for the 'Retry' the 'force' flag should be cleared - or the user will once again start from the first dive which almost certainly is not what they expect. Signed-off-by: Dirk Hohndel --- gtk-gui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk-gui.c') diff --git a/gtk-gui.c b/gtk-gui.c index 8cb4d0779..3e9a35f20 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -1820,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) -- cgit v1.2.3-70-g09d2