fix bug 3886, '"About to send mail to 2 recipients" warning when one of them is Reply-To'
authorPaul <paul@claws-mail.org>
Thu, 31 Aug 2017 09:13:28 +0000 (10:13 +0100)
committerPaul <paul@claws-mail.org>
Thu, 31 Aug 2017 09:13:28 +0000 (10:13 +0100)
src/compose.c

index 69c5a0f614d5221a06d84a1694dc4c0d405cd453..81747bb5359ddca42b1df2d71ebffc86c6213417 100644 (file)
@@ -5193,9 +5193,9 @@ static gboolean compose_check_entries(Compose *compose, gboolean check_everythin
                        entry = gtk_editable_get_chars(GTK_EDITABLE(((ComposeHeaderEntry *)list->data)->entry), 0, -1);
                        g_strstrip(header);
                        g_strstrip(entry);
-                       if ((entry[0] != '\0')
-                       &&      (strcmp(header, prefs_common_translated_header_name("To:"))
-                       ||  strcmp(header, prefs_common_translated_header_name("Cc:")))) {
+                       if ((entry[0] != '\0') &&
+                           (!strcmp(header, prefs_common_translated_header_name("To:")) ||
+                            !strcmp(header, prefs_common_translated_header_name("Cc:")))) {
                                cnt++;
                        }
                        g_free(header);