aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-11-08 22:42:38 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-11-08 22:42:38 +0800
commit9f3f6fc9f5febe4f3cd8ab33bff222dceced3bac (patch)
tree924a19379676f211303299613ed775ebb61bed53 /calendar/gui/e-itip-control.c
parentd1e3f760a9b837802951bac11fd5f0dcdcf42f28 (diff)
downloadgsoc2013-evolution-9f3f6fc9f5febe4f3cd8ab33bff222dceced3bac.tar.gz
gsoc2013-evolution-9f3f6fc9f5febe4f3cd8ab33bff222dceced3bac.tar.zst
gsoc2013-evolution-9f3f6fc9f5febe4f3cd8ab33bff222dceced3bac.zip
don't add the item, remove it if declining (in case it was added before)
2001-11-08 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (ok_clicked_cb): don't add the item, remove it if declining (in case it was added before) (remove_item): Since we can't discern between an item not found and another error, always say the removal is complete svn path=/trunk/; revision=14625
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 33807fa994..09cdeec967 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -1312,9 +1312,7 @@ remove_item (EItipControl *itip)
client = priv->event_client;
cal_component_get_uid (priv->comp, &uid);
- if (!cal_client_remove_object (client, uid))
- dialog = gnome_warning_dialog (_("I couldn't remove the item from your calendar file!\n"));
- else
+ if (cal_client_remove_object (client, uid))
dialog = gnome_ok_dialog (_("Removal Complete"));
gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
}
@@ -1503,7 +1501,7 @@ ok_clicked_cb (GtkHTML *html, const gchar *method, const gchar *url, const gchar
case 'D':
change_status (priv->ical_comp, priv->my_address, ICAL_PARTSTAT_DECLINED);
cal_component_rescan (priv->comp);
- update_item (itip);
+ remove_item (itip);
break;
case 'F':
send_freebusy (itip);