Simplify hidden prefs for too many recipients
authorRicardo Mones <ricardo@mones.org>
Mon, 27 Feb 2017 22:59:19 +0000 (23:59 +0100)
committerRicardo Mones <ricardo@mones.org>
Mon, 27 Feb 2017 22:59:19 +0000 (23:59 +0100)
src/compose.c
src/prefs_common.c
src/prefs_common.h

index 2a2a438..77d9f05 100644 (file)
@@ -5152,7 +5152,7 @@ static gboolean compose_check_entries(Compose *compose, gboolean check_everythin
                }
        }
 
                }
        }
 
-       if (!compose->batch && prefs_common.warn_sending_many_recipients == TRUE
+       if (!compose->batch && prefs_common.warn_sending_many_recipients_num > 0
                        && check_everything == TRUE) {
                GSList *list;
                gint cnt = 0;
                        && check_everything == TRUE) {
                GSList *list;
                gint cnt = 0;
index 2d8f5bd..da80d2c 100644 (file)
@@ -213,9 +213,7 @@ static PrefParam param[] = {
          P_BOOL, NULL, NULL, NULL},
        {"warn_empty_subj", "TRUE", &prefs_common.warn_empty_subj,
         P_BOOL, NULL, NULL, NULL},
          P_BOOL, NULL, NULL, NULL},
        {"warn_empty_subj", "TRUE", &prefs_common.warn_empty_subj,
         P_BOOL, NULL, NULL, NULL},
-       {"warn_sending_many_recipients", "FALSE", &prefs_common.warn_sending_many_recipients,
-        P_BOOL, NULL, NULL, NULL},
-       {"warn_sending_many_recipients_num", "1", &prefs_common.warn_sending_many_recipients_num, P_INT,
+       {"warn_sending_many_recipients_num", "0", &prefs_common.warn_sending_many_recipients_num, P_INT,
         NULL, NULL, NULL},
        {"hide_timezone", "FALSE", &prefs_common.hide_timezone,
         P_BOOL, NULL, NULL, NULL},
         NULL, NULL, NULL},
        {"hide_timezone", "FALSE", &prefs_common.hide_timezone,
         P_BOOL, NULL, NULL, NULL},
index 179e163..f4b6e1d 100644 (file)
@@ -144,7 +144,6 @@ struct _PrefsCommon
        gboolean outgoing_fallback_to_ascii;
        gboolean rewrite_first_from;
        gboolean warn_empty_subj;
        gboolean outgoing_fallback_to_ascii;
        gboolean rewrite_first_from;
        gboolean warn_empty_subj;
-       gboolean warn_sending_many_recipients;
        gint warn_sending_many_recipients_num;
        gboolean hide_timezone;
        gboolean allow_jisx0201_kana;
        gint warn_sending_many_recipients_num;
        gboolean hide_timezone;
        gboolean allow_jisx0201_kana;