From 9706eaebf949fde93d47519c3f6ebfc0ff82afbf Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Fri, 30 Sep 2005 08:24:06 +0000 Subject: ** See bug 317284 2005-09-29 Parthasarathi Susarla ** See bug 317284 * em-mailer-prefs.c: (emmp_header_add_header): Check if its a valid header and only then add it svn path=/trunk/; revision=30429 --- mail/em-mailer-prefs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c index f956d9ce84..4fe3cbfa68 100644 --- a/mail/em-mailer-prefs.c +++ b/mail/em-mailer-prefs.c @@ -385,6 +385,8 @@ emmp_header_add_header (GtkWidget *widget, EMMailerPrefs *prefs) GtkTreeModel *model = GTK_TREE_MODEL (prefs->header_list_store); GtkTreeIter iter; const gchar *text = gtk_entry_get_text (prefs->entry_header); + + g_strstrip (text); if (text && (strlen (text)>0)) { gtk_list_store_append (GTK_LIST_STORE (model), &iter); -- cgit v1.2.3