aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/calendar-component.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index f2431689e4..de888ddd99 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-28 Harry Lu <harry.lu@sun.com>
+
+ Fix for 333693.
+ * gui/calendar-component.c: (update_task_selection): need to see if
+ source is NULL to avoid a CRITICAL warning.
+
2006-03-23 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #329502
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index b620715c91..b88850c8ce 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -416,7 +416,7 @@ update_task_selection (CalendarComponentView *component_view)
ESource *source;
source = e_source_list_peek_source_by_uid (component_view->task_source_list, uid);
- if (!gnome_calendar_add_source (component_view->calendar, E_CAL_SOURCE_TYPE_TODO, source))
+ if (source && !gnome_calendar_add_source (component_view->calendar, E_CAL_SOURCE_TYPE_TODO, source))
/* FIXME do something */;
}