[gnome-calendar] manager: only load calendar sources



commit b7476cb84c3b08452297ab30e47a6702320d393f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon May 25 14:05:49 2015 -0300

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 4dd2a2d..2ffc1d2 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]