mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-17 16:19:18 +03:00
Never warn the user about multiple tabs being open when we're in the process of quitting.
This commit is contained in:
parent
f04103398b
commit
9d77dc83bd
@ -2942,6 +2942,9 @@ void ami_quit_netsurf(void)
|
|||||||
struct nsObject *nnode;
|
struct nsObject *nnode;
|
||||||
struct gui_window_2 *gwin;
|
struct gui_window_2 *gwin;
|
||||||
|
|
||||||
|
/* Disable the multiple tabs open warning */
|
||||||
|
nsoption_set_bool(tab_close_warn, false);
|
||||||
|
|
||||||
if(!IsMinListEmpty(window_list)) {
|
if(!IsMinListEmpty(window_list)) {
|
||||||
node = (struct nsObject *)GetHead((struct List *)window_list);
|
node = (struct nsObject *)GetHead((struct List *)window_list);
|
||||||
|
|
||||||
@ -3001,7 +3004,6 @@ void ami_quit_netsurf_delayed(void)
|
|||||||
free(utf8gadgets);
|
free(utf8gadgets);
|
||||||
#endif
|
#endif
|
||||||
if(res == -1) { /* Requester timed out */
|
if(res == -1) { /* Requester timed out */
|
||||||
nsoption_set_bool(tab_close_warn, false);
|
|
||||||
ami_quit_netsurf();
|
ami_quit_netsurf();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user