aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/em-composer-utils.c12
-rw-r--r--mail/em-utils.c3
2 files changed, 9 insertions, 6 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index b97883061b..19784351ef 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -378,7 +378,7 @@ composer_presend_check_identity (EMsgComposer *composer,
source = e_source_registry_ref_source (registry, uid);
g_return_val_if_fail (source != NULL, FALSE);
- if (!e_source_get_enabled (source)) {
+ if (!e_source_registry_check_enabled (registry, source)) {
e_alert_submit (
E_ALERT_SINK (composer),
"mail:send-no-account-enabled", NULL);
@@ -2450,8 +2450,10 @@ generate_recipient_hash (ESourceRegistry *registry)
* identities at all and so we should never get here. */
g_warn_if_fail (default_source != NULL);
- source_is_default = e_source_equal (source, default_source);
- source_is_enabled = e_source_get_enabled (source);
+ source_is_default =
+ e_source_equal (source, default_source);
+ source_is_enabled =
+ e_source_registry_check_enabled (registry, source);
extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY;
extension = e_source_get_extension (source, extension_name);
@@ -2466,8 +2468,8 @@ generate_recipient_hash (ESourceRegistry *registry)
if (cached_source != NULL) {
cached_is_default = e_source_equal (
cached_source, default_source);
- cached_is_enabled =
- e_source_get_enabled (cached_source);
+ cached_is_enabled = e_source_registry_check_enabled (
+ registry, cached_source);
} else {
cached_is_default = FALSE;
cached_is_enabled = FALSE;
diff --git a/mail/em-utils.c b/mail/em-utils.c
index f7f12e5755..80967f1f52 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1424,7 +1424,8 @@ em_utils_empty_trash (GtkWidget *parent,
source = e_source_registry_ref_source (registry, uid);
if (source != NULL) {
- enabled = e_source_get_enabled (source);
+ enabled = e_source_registry_check_enabled (
+ registry, source);
g_object_unref (source);
}