if ((menu->menu == MENU_MAIN)
&& (query_quadoption (OPT_QUIT,
_("Exit Mutt without saving?")) == M_YES))
+ {
+ mx_fastclose_mailbox (Context);
+ safe_free ((void **) &Context);
done = 1;
+ }
break;
case OP_MAIN_NEXT_UNDELETED:
if ((Context = mx_open_mailbox (folder, ((flags & M_RO) || option (OPTREADONLY)) ? M_READONLY : 0, NULL)) != NULL)
{
- int close = mutt_index_menu ();
-
+ mutt_index_menu ();
if (Context)
- {
- if (close == OP_QUIT)
- mx_close_mailbox (Context);
- else
- mx_fastclose_mailbox (Context);
- }
-
- safe_free ((void **)&Context);
+ safe_free ((void **)&Context);
mutt_endwin (NULL);
}
else