diff options
Diffstat (limited to 'src/window_list.c')
-rw-r--r-- | src/window_list.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/window_list.c b/src/window_list.c index 7fcc0172..6b9f2411 100644 --- a/src/window_list.c +++ b/src/window_list.c @@ -508,6 +508,17 @@ wins_close_by_num(int i) ProfWin *window = wins_get_by_num(i); if (window) { + // cancel upload proccesses of this window + GSList *upload_process = upload_processes; + while (upload_process) { + HTTPUpload *upload = upload_process->data; + if (upload->window == window) { + upload->cancel = 1; + break; + } + upload_process = g_slist_next(upload_process); + } + switch (window->type) { case WIN_CHAT: { |