diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-20 17:02:17 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-20 17:02:17 -0300 |
commit | a542b25bde597b7bfe189f14a6868f711f879516 (patch) | |
tree | 5ec29dcafb9da0cc5470e5a5889aca29b54008ec /libdivecomputer.c | |
parent | c7a5d0490fa5f4e8579e6a8e0fbdc7baf7c34145 (diff) | |
download | subsurface-a542b25bde597b7bfe189f14a6868f711f879516.tar.gz |
Added code to cancel the thread.
I think it's self explanatory - When user clicks on
'Cancel', the interface will wait for the trhead to quit
then will close itself.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index ecc90accc..6397018a3 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -652,7 +652,7 @@ static void event_cb(dc_device_t *device, dc_event_type_t event, const void *dat } } -static int import_thread_done = 0, import_thread_cancelled; +int import_thread_cancelled; static int cancel_cb(void *userdata) |