aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2006-03-28 12:46:47 +0800
committerHarry Lu <haip@src.gnome.org>2006-03-28 12:46:47 +0800
commitb35d81ae0829510bcf40e1109be10bee917300cb (patch)
tree769487550cf8b2ba9a65752c3e268b3e460d6bc5 /calendar/gui
parent945bf85e618b768cae86a272fe7b452141d90713 (diff)
downloadgsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar
gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.gz
gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.bz2
gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.lz
gsoc2013-evolution-b35d81ae0829510bcf40e1109be10bee917300cb.tar.xz
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/gui')
-rw-r--r--calendar/gui/calendar-component.c2
1 files changed, 1 insertions, 1 deletions
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 */;
}