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:
+2
-1
@@ -296,7 +296,8 @@ load_source (GcalManager *manager,
|
|||||||
|
|
||||||
priv = gcal_manager_get_instance_private (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 */
|
/* NULL: because maybe the operation cannot be really cancelled */
|
||||||
e_cal_client_connect (source,
|
e_cal_client_connect (source,
|
||||||
|
|||||||
Reference in New Issue
Block a user