summaryrefslogtreecommitdiffstats
path: root/core/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r--core/uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c
index 52b4276c2..3ae6f7b8d 100644
--- a/core/uemis-downloader.c
+++ b/core/uemis-downloader.c
@@ -858,7 +858,7 @@ static bool uemis_delete_dive(device_data_t *devdata, uint32_t diveid)
}
if (dive) {
devdata->download_table->dives[--devdata->download_table->nr] = NULL;
- if (dive->tripflag != TF_NONE)
+ if (dive->notrip)
remove_dive_from_trip(dive, false);
free(dive->dc.sample);