From 5087fde086ab45981547582355ba06ae2c73c286 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 10 Feb 2014 21:08:36 +0000 Subject: Force downloads to abort on quit --- amiga/gui.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 5234a7601..83f2c46a9 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2635,17 +2635,14 @@ void ami_quit_netsurf(void) struct nsObject *nnode; struct gui_window_2 *gwin; - if(!IsMinListEmpty(window_list)) - { + if(!IsMinListEmpty(window_list)) { node = (struct nsObject *)GetHead((struct List *)window_list); - do - { + do { nnode=(struct nsObject *)GetSucc((struct Node *)node); gwin = node->objstruct; - switch(node->Type) - { + switch(node->Type) { case AMINS_TVWINDOW: ami_tree_close((struct treeview_window *)gwin); break; @@ -2658,15 +2655,17 @@ void ami_quit_netsurf(void) case AMINS_GUIOPTSWINDOW: ami_gui_opts_close(); break; - } + case AMINS_DLWINDOW: + ami_download_window_abort((struct gui_download_window *)gwin); + break; + } } while(node = nnode); win_destroyed = true; } - if(IsMinListEmpty(window_list)) - { + if(IsMinListEmpty(window_list)) { /* last window closed, so exit */ netsurf_quit = true; } -- cgit v1.2.3