From 7f0d04dd7a82446bd7ad9273f47358f8ad1fb7a4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 19 Jan 2004 19:38:58 +0000 Subject: handle the case where we have a bogus uid 2004-01-19 JP Rosevear * gui/tasks-component.c (update_primary_selection): handle the case where we have a bogus uid * gui/calendar-component.c (update_primary_selection): ditto svn path=/trunk/; revision=24313 --- calendar/gui/tasks-component.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/tasks-component.c') diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index a2d39a0ce9..0670d0ecb8 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -251,7 +251,7 @@ static void update_primary_selection (TasksComponent *component) { TasksComponentPrivate *priv; - ESource *source; + ESource *source = NULL; char *uid; priv = component->priv; @@ -260,7 +260,9 @@ update_primary_selection (TasksComponent *component) if (uid) { source = e_source_list_peek_source_by_uid (priv->source_list, uid); g_free (uid); + } + if (source) { e_source_selector_set_primary_selection (E_SOURCE_SELECTOR (priv->source_selector), source); } else { ESource *source; -- cgit