summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 7cc3894f9..9f4f545ce 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -710,8 +710,10 @@ static const char *do_device_import(device_data_t *data)
rc = dc_device_foreach(device, dive_cb, data);
}
- if (rc != DC_STATUS_SUCCESS)
+ if (rc != DC_STATUS_SUCCESS) {
+ progress_bar_fraction = 0.0;
return translate("gettextFromC","Dive data import error");
+ }
/* All good */
return NULL;