summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-19 16:13:05 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-19 16:13:05 -0800
commitcdbdf40848d46a1210d6c47f0b51c7f0be8f57b2 (patch)
tree4eee355eafceeea2e8e087d04078292b0432b0af /gtk-gui.c
parent4e02f5f3a3af100d2f56e353a167b2b90c7252c0 (diff)
downloadsubsurface-cdbdf40848d46a1210d6c47f0b51c7f0be8f57b2.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c1
1 files changed, 1 insertions, 0 deletions
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)