diff options
author | Harry Lu <harry.lu@sun.com> | 2006-03-28 12:46:47 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2006-03-28 12:46:47 +0800 |
commit | b35d81ae0829510bcf40e1109be10bee917300cb (patch) | |
tree | 769487550cf8b2ba9a65752c3e268b3e460d6bc5 /calendar | |
parent | 945bf85e618b768cae86a272fe7b452141d90713 (diff) | |
download | gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.gz gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.zst gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.zip |
Fix for 333693. need to see if source is NULL to avoid a CRITICAL warning.
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.
svn path=/trunk/; revision=31748
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 2 |
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 */; } |