Never warn the user about multiple tabs being open when we're in the process of quitting.

This commit is contained in:
Chris Young 2016-12-15 18:23:52 +00:00
parent f04103398b
commit 9d77dc83bd

View File

@ -2942,6 +2942,9 @@ void ami_quit_netsurf(void)
struct nsObject *nnode;
struct gui_window_2 *gwin;
/* Disable the multiple tabs open warning */
nsoption_set_bool(tab_close_warn, false);
if(!IsMinListEmpty(window_list)) {
node = (struct nsObject *)GetHead((struct List *)window_list);
@ -3001,7 +3004,6 @@ void ami_quit_netsurf_delayed(void)
free(utf8gadgets);
#endif
if(res == -1) { /* Requester timed out */
nsoption_set_bool(tab_close_warn, false);
ami_quit_netsurf();
}
}