From 34e866099254d32a7707db4c2c881525fe64fafa Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 17 Sep 2007 06:20:18 +0000 Subject: 2007-09-17 mcrha Fix for bug #472865 svn path=/trunk/; revision=34277 --- mail/ChangeLog | 7 +++++++ mail/em-composer-utils.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index af05f004c4..c4017a12f7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2007-09-17 Milan Crha + + ** Fix for bug #472865 + + * em-composer-utils.c: (ask_confirm_for_unwanted_html_mail): + Show dialog only when there is any recipient, not always. + 2007-09-12 Matthew Barnes ** Fixes part of bug #476040 diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 0d4c056450..c9519d9fdb 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -147,8 +147,12 @@ ask_confirm_for_unwanted_html_mail (EMsgComposer *composer, EDestination **recip } } - res = em_utils_prompt_user((GtkWindow *)composer,"/apps/evolution/mail/prompts/unwanted_html", - "mail:ask-send-html", str->str, NULL); + if (str->len) + res = em_utils_prompt_user((GtkWindow *)composer,"/apps/evolution/mail/prompts/unwanted_html", + "mail:ask-send-html", str->str, NULL); + else + res = TRUE; + g_string_free(str, TRUE); return res; -- cgit v1.2.3