From 7b52cce57f0fdcf493d2980948eaf5440c1b2a39 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 29 Mar 2004 22:06:54 +0000 Subject: don't require client to be loaded in order to remove the source 2004-03-29 William Jon McCann * gui/tasks-component.c (delete_task_list_cb): * gui/calendar-component.c (delete_calendar_cb): don't require client to be loaded in order to remove the source svn path=/trunk/; revision=25234 --- calendar/gui/tasks-component.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/tasks-component.c') diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 2fe0809c74..5b1683a0e4 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -310,6 +310,8 @@ delete_task_list_cb (GtkWidget *widget, TasksComponent *comp) cal = e_cal_model_get_client_for_uri ( e_calendar_table_get_model (E_CALENDAR_TABLE (e_tasks_get_calendar_table (priv->tasks))), uri); + if (!cal) + cal = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_TODO); g_free (uri); if (cal) { if (e_cal_remove (cal, NULL)) { -- cgit v1.2.3