From ee208ba079ed4d8e7073d1728cc24e2d5b7babcf Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 19 Oct 2001 17:59:20 +0000 Subject: Do not assert if we fail to load the URI list. This would of course have 2001-10-19 Federico Mena Quintero * gui/alarm-notify/alarm-notify.c (add_uri_to_load): Do not assert if we fail to load the URI list. This would of course have been a bonobo-conf activation problem. (remove_uri_to_load): Likewise. * gui/alarm-notify/notify-main.c (load_calendars): Likewise. * gui/alarm-notify/alarm-queue.c (load_missed_alarms): Make the time range half-open so that we do not display the last alarm twice. svn path=/trunk/; revision=13797 --- calendar/gui/alarm-notify/notify-main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui/alarm-notify/notify-main.c') diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c index f2e2444201..573bf0a372 100644 --- a/calendar/gui/alarm-notify/notify-main.c +++ b/calendar/gui/alarm-notify/notify-main.c @@ -117,7 +117,10 @@ load_calendars (void) int i; uris = get_calendars_to_load (); - g_assert (uris != NULL); + if (!uris) { + g_message ("load_calendars(): Could not get the list of calendars to load"); + return; + } for (i = 0; i < uris->len; i++) { char *uri; -- cgit v1.2.3