mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4e02f5f3a3
commit
cdbdf40848
1 changed files with 1 additions and 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue