Lua improvements:
[apps/madmutt.git] / lib-ui / curs_main.c
index c716dc5..600932a 100644 (file)
@@ -479,7 +479,7 @@ int mutt_index_menu (void)
           sidebar_draw ();
           mutt_message (_("New mail in this mailbox."));
 
           sidebar_draw ();
           mutt_message (_("New mail in this mailbox."));
 
-          if (option (OPTBEEPNEW))
+          if (ml_core.beep_new)
             beep ();
         }
         else if (check == M_FLAGS)
             beep ();
         }
         else if (check == M_FLAGS)
@@ -506,7 +506,7 @@ int mutt_index_menu (void)
         menu->redraw |= REDRAW_SIDEBAR;
       }
       if (do_buffy_notify) {
         menu->redraw |= REDRAW_SIDEBAR;
       }
       if (do_buffy_notify) {
-        if (buffy_notify () && option (OPTBEEPNEW))
+        if (buffy_notify () && ml_core.beep_new)
           beep ();
       }
       else
           beep ();
       }
       else
@@ -974,7 +974,7 @@ int mutt_index_menu (void)
         break;
       }
 
         break;
       }
 
-      if (query_quadoption2(LTK_QUIT, _("Quit Madmutt?")) == M_YES) {
+      if (query_quadoption2(ml_core.quit, _("Quit Madmutt?")) == M_YES) {
         int check;
 
         oldcount = Context ? Context->msgcount : 0;
         int check;
 
         oldcount = Context ? Context->msgcount : 0;
@@ -1302,7 +1302,7 @@ int mutt_index_menu (void)
       }
 
       if ((menu->menu == MENU_MAIN)
       }
 
       if ((menu->menu == MENU_MAIN)
-          && (query_quadoption2(LTK_QUIT,
+          && (query_quadoption2(ml_core.quit,
                                 _("Exit Madmutt without saving?")) == M_YES))
       {
         if (Context) {
                                 _("Exit Madmutt without saving?")) == M_YES))
       {
         if (Context) {