mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c7a5d0490f
commit
a542b25bde
4 changed files with 24 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue