[PATCH] Reset the cancel flag before each download.
Jef Driesen
jefdriesen at telenet.be
Fri May 17 11:40:32 PDT 2013
If the user cancels a download, and then tries to download again, the
retry will fail too, because the cancel flag remains set after the first
download.
---
libdivecomputer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 9ad5df5..6ee431e 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -735,6 +735,7 @@ GError *do_import(device_data_t *data)
/* I'm sure there is some better interface for waiting on a thread in a UI main loop */
import_thread_done = 0;
+ import_thread_cancelled = 0;
progress_bar_text = "";
progress_bar_fraction = 0.0;
pthread_create(&pthread, NULL, pthread_wrapper, data);
--
1.7.9.5
More information about the subsurface
mailing list