diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-19 16:13:05 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-19 16:13:05 -0800 |
commit | cdbdf40848d46a1210d6c47f0b51c7f0be8f57b2 (patch) | |
tree | 4eee355eafceeea2e8e087d04078292b0432b0af | |
parent | 4e02f5f3a3af100d2f56e353a167b2b90c7252c0 (diff) | |
download | subsurface-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>
-rw-r--r-- | gtk-gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |