aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-post-header.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-composer-post-header.c')
-rw-r--r--composer/e-composer-post-header.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/composer/e-composer-post-header.c b/composer/e-composer-post-header.c
index cc013244bc..48deadfb70 100644
--- a/composer/e-composer-post-header.c
+++ b/composer/e-composer-post-header.c
@@ -350,6 +350,9 @@ e_composer_post_header_set_mail_account (EComposerPostHeader *header,
g_return_if_fail (E_IS_COMPOSER_POST_HEADER (header));
+ if (header->priv->mail_account == mail_account)
+ return;
+
if (mail_account != NULL) {
g_return_if_fail (E_IS_SOURCE (mail_account));
g_object_ref (mail_account);