diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-24 20:21:45 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-24 20:21:45 +0800 |
commit | 148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec (patch) | |
tree | 960efe77122892d7c77639680108f230ce1af4c0 | |
parent | 1f382b36fae7bbe91d39c52d7315865b1771d462 (diff) | |
download | gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.gz gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.zst gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.zip |
check the uid before using it.
2003-07-24 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-cal-view.c (delete_event): check the uid before using it.
svn path=/trunk/; revision=21944
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/gui/e-cal-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-calendar-view.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fed82ace52..83e06e7bbb 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,9 @@ 2003-07-24 Rodrigo Moya <rodrigo@ximian.com> + * gui/e-cal-view.c (delete_event): check the uid before using it. + +2003-07-24 Rodrigo Moya <rodrigo@ximian.com> + * gui/e-day-view.c (e_day_view_delete_event, e_day_view_delete_event_internal): * gui/e-week-view.c (e_week_view_delete_event, diff --git a/calendar/gui/e-cal-view.c b/calendar/gui/e-cal-view.c index 6c352270af..84dab61a86 100644 --- a/calendar/gui/e-cal-view.c +++ b/calendar/gui/e-cal-view.c @@ -593,6 +593,8 @@ delete_event (ECalView *cal_view, CalComponent *comp) cal_view->priv->client, NULL); cal_component_get_uid (comp, &uid); + if (!uid || !*uid) + return; delete_error_dialog ( cal_client_remove_object (cal_view->priv->client, uid), CAL_COMPONENT_EVENT); diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 6c352270af..84dab61a86 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -593,6 +593,8 @@ delete_event (ECalView *cal_view, CalComponent *comp) cal_view->priv->client, NULL); cal_component_get_uid (comp, &uid); + if (!uid || !*uid) + return; delete_error_dialog ( cal_client_remove_object (cal_view->priv->client, uid), CAL_COMPONENT_EVENT); |