aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-05-17 22:52:34 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-05-17 22:52:34 +0800
commita54c54fd76f48ee3d73ca8e246439321a8d11a51 (patch)
tree200c05f1f337dc2da92fbb30379e2e86c0a5f3c7 /calendar/gui
parent8ab7a8d7ae51f15031671f53fd416e0e80c7941c (diff)
downloadgsoc2013-evolution-a54c54fd76f48ee3d73ca8e246439321a8d11a51.tar.gz
gsoc2013-evolution-a54c54fd76f48ee3d73ca8e246439321a8d11a51.tar.zst
gsoc2013-evolution-a54c54fd76f48ee3d73ca8e246439321a8d11a51.zip
if we don't have a RECURRENCE-ID, remove nothing.
2004-05-17 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence): if we don't have a RECURRENCE-ID, remove nothing. svn path=/trunk/; revision=25924
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-calendar-view.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 7562d83912..0ea8b5b2e4 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -900,17 +900,19 @@ e_calendar_view_delete_selected_occurrence (ECalendarView *cal_view)
}
}
- if (delete_component_dialog (comp, FALSE, 1, e_cal_component_get_vtype (comp), GTK_WIDGET (cal_view))) {
-
- if (itip_organizer_is_user (comp, event->comp_data->client)
- && cancel_component_dialog ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (cal_view)),
- event->comp_data->client,
- comp, TRUE))
- itip_send_comp (E_CAL_COMPONENT_METHOD_CANCEL, comp, event->comp_data->client, NULL);
-
- e_cal_remove_object_with_mod (event->comp_data->client, uid, rid, CALOBJ_MOD_THIS, &error);
- delete_error_dialog (error, E_CAL_COMPONENT_EVENT);
- g_clear_error (&error);
+ if (rid) {
+ if (delete_component_dialog (comp, FALSE, 1, e_cal_component_get_vtype (comp), GTK_WIDGET (cal_view))) {
+
+ if (itip_organizer_is_user (comp, event->comp_data->client)
+ && cancel_component_dialog ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (cal_view)),
+ event->comp_data->client,
+ comp, TRUE))
+ itip_send_comp (E_CAL_COMPONENT_METHOD_CANCEL, comp, event->comp_data->client, NULL);
+
+ e_cal_remove_object_with_mod (event->comp_data->client, uid, rid, CALOBJ_MOD_THIS, &error);
+ delete_error_dialog (error, E_CAL_COMPONENT_EVENT);
+ g_clear_error (&error);
+ }
}
/* free memory */