aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2004-03-30 06:06:54 +0800
committerWilliam Jon McCann <mccann@src.gnome.org>2004-03-30 06:06:54 +0800
commit7b52cce57f0fdcf493d2980948eaf5440c1b2a39 (patch)
tree52cd7896bfc1ab3ab4175a528478865a5cbb4392 /calendar/gui/calendar-component.c
parent1eeeedc0b171c92685b5b49887d503867dc8ff48 (diff)
downloadgsoc2013-evolution-7b52cce57f0fdcf493d2980948eaf5440c1b2a39.tar.gz
gsoc2013-evolution-7b52cce57f0fdcf493d2980948eaf5440c1b2a39.tar.zst
gsoc2013-evolution-7b52cce57f0fdcf493d2980948eaf5440c1b2a39.zip
don't require client to be loaded in order to remove the source
2004-03-29 William Jon McCann <mccann@jhu.edu> * 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
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 0f6b0393ef..db6fdabe7d 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -379,6 +379,8 @@ delete_calendar_cb (GtkWidget *widget, CalendarComponent *comp)
/* first, ask the backend to remove the calendar */
uri = e_source_get_uri (selected_source);
cal = e_cal_model_get_client_for_uri (gnome_calendar_get_calendar_model (priv->calendar), uri);
+ if (!cal)
+ cal = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_EVENT);
g_free (uri);
if (cal) {
if (e_cal_remove (cal, NULL)) {