diff options
Diffstat (limited to 'mail/e-mail-config-service-backend.c')
-rw-r--r-- | mail/e-mail-config-service-backend.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-config-service-backend.c b/mail/e-mail-config-service-backend.c index 49019c5fb7..c6c42ae7f5 100644 --- a/mail/e-mail-config-service-backend.c +++ b/mail/e-mail-config-service-backend.c @@ -297,6 +297,9 @@ e_mail_config_service_backend_set_source (EMailConfigServiceBackend *backend, { g_return_if_fail (E_IS_MAIL_CONFIG_SERVICE_BACKEND (backend)); + if (backend->priv->source == source) + return; + if (source != NULL) { g_return_if_fail (E_IS_SOURCE (source)); g_object_ref (source); @@ -324,6 +327,9 @@ e_mail_config_service_backend_set_collection (EMailConfigServiceBackend *backend { g_return_if_fail (E_IS_MAIL_CONFIG_SERVICE_BACKEND (backend)); + if (backend->priv->collection == collection) + return; + if (collection != NULL) { g_return_if_fail (E_IS_SOURCE (collection)); g_object_ref (collection); |