From 16d9b0c790c1fb0dae6e001a3107fb4f82356e90 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 20 Sep 2017 18:44:10 -0400 Subject: DC download: fix 'no new dives' message Stupidly, commit 731d9dc9bdf ("DC download: tell user when no new dives were found") was missing the conditional when to show that messages. Signed-off-by: Dirk Hohndel --- core/libdivecomputer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index e6b600644..beae7c521 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -1121,7 +1121,8 @@ const char *do_libdivecomputer_import(device_data_t *data) /* TODO: Show the logfile to the user on error. */ dc_device_close(data->device); data->device = NULL; - dev_info(data, translate("gettextFromC", "No new dives downloaded from dive computer")); + if (!downloadTable.nr) + dev_info(data, translate("gettextFromC", "No new dives downloaded from dive computer")); } dc_context_free(data->context); -- cgit v1.2.3-70-g09d2