[evolution] Alarm-Notify: Skip disabled sources/calendars



commit c695c32f2d2419e1653e2360da261ec14662ce4c
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 8 15:37:43 2013 +0100

    Alarm-Notify: Skip disabled sources/calendars
    
    Trying to open sources which are disabled violates user's will,
    thus do not do that.

 calendar/alarm-notify/alarm-notify.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/alarm-notify/alarm-notify.c b/calendar/alarm-notify/alarm-notify.c
index 73fadc1..e273381 100644
--- a/calendar/alarm-notify/alarm-notify.c
+++ b/calendar/alarm-notify/alarm-notify.c
@@ -62,7 +62,7 @@ alarm_notify_load_calendars (AlarmNotify *an)
        /* Add all available ESources.  alarm_notify_add_calendar() will
         * discard the ones we're not interested in (mail accounts, etc.). */
 
-       list = e_source_registry_list_sources (an->priv->registry, NULL);
+       list = e_source_registry_list_enabled (an->priv->registry, NULL);
 
        for (iter = list; iter != NULL; iter = g_list_next (iter))
                alarm_notify_add_calendar (an, E_SOURCE (iter->data));


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