aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-config-service-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-config-service-page.c')
-rw-r--r--mail/e-mail-config-service-page.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-config-service-page.c b/mail/e-mail-config-service-page.c
index 5994ebc2bf..dc4eb805bf 100644
--- a/mail/e-mail-config-service-page.c
+++ b/mail/e-mail-config-service-page.c
@@ -823,6 +823,9 @@ e_mail_config_service_page_set_active_backend (EMailConfigServicePage *page,
{
g_return_if_fail (E_IS_MAIL_CONFIG_SERVICE_PAGE (page));
+ if (page->priv->active_backend == backend)
+ return;
+
if (backend != NULL) {
g_return_if_fail (E_IS_MAIL_CONFIG_SERVICE_BACKEND (backend));
g_object_ref (backend);
@@ -850,6 +853,9 @@ e_mail_config_service_page_set_email_address (EMailConfigServicePage *page,
{
g_return_if_fail (E_IS_MAIL_CONFIG_SERVICE_PAGE (page));
+ if (g_strcmp0 (page->priv->email_address, email_address) == 0)
+ return;
+
g_free (page->priv->email_address);
page->priv->email_address = g_strdup (email_address);