From b7476cb84c3b08452297ab30e47a6702320d393f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 25 May 2015 14:05:49 -0300 Subject: [PATCH] manager: only load calendar sources Do not blindly load every source loaded by the ESourceRegistry::source-added, since it may be a non-calendar source. --- src/gcal-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gcal-manager.c b/src/gcal-manager.c index 4dd2a2dd..2ffc1d2e 100644 --- a/src/gcal-manager.c +++ b/src/gcal-manager.c @@ -296,7 +296,8 @@ load_source (GcalManager *manager, priv = gcal_manager_get_instance_private (manager); - if (g_hash_table_lookup (priv->clients, source) == NULL) + if (g_hash_table_lookup (priv->clients, source) == NULL && + e_source_has_extension (source, E_SOURCE_EXTENSION_CALENDAR)) { /* NULL: because maybe the operation cannot be really cancelled */ e_cal_client_connect (source,