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.
This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 14:05:49 -03:00
parent d5cc7efcd0
commit b7476cb84c
+2 -1
View File
@@ -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,