[balsa/wip/gtk4: 242/351] sendmsg-window: do not set addresses twice



commit 227e4b5853ec35036b469039a057b1bb59158992
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Mar 22 15:48:53 2018 -0400

    sendmsg-window: do not set addresses twice
    
    Reply-To: and Bcc: are set in a callback when the identity combo-box is
    changed, so setting them here as well results in duplicates.

 src/sendmsg-window.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 45e4e89..fa3b982 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -3981,23 +3981,9 @@ guess_identity(BalsaSendmsg* bsmsg, LibBalsaMessage * message)
 static void
 setup_headers_from_identity(BalsaSendmsg* bsmsg, LibBalsaIdentity *ident)
 {
-    const gchar *addr;
-
     gtk_combo_box_set_active(GTK_COMBO_BOX(bsmsg->from[1]),
                              g_list_index(balsa_app.identities, ident));
 
-    addr = libbalsa_identity_get_replyto(ident);
-    if (addr != NULL)
-        libbalsa_address_view_set_from_string(bsmsg->replyto_view,
-                                              "Reply To:",
-                                              addr);
-
-    addr = libbalsa_identity_get_bcc(ident);
-    if (addr != NULL)
-        libbalsa_address_view_set_from_string(bsmsg->recipient_view,
-                                              "BCC:",
-                                              addr);
-
     /* Make sure the blank line is "To:" */
     libbalsa_address_view_add_from_string(bsmsg->recipient_view,
                                           "To:", NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]