aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/delete-comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/delete-comp.c')
-rw-r--r--calendar/gui/dialogs/delete-comp.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index 1a004272d1..8fc8d80ddf 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -64,6 +64,7 @@ delete_component_dialog (ECalComponent *comp,
const gchar *id;
gchar *arg0 = NULL;
gint response;
+ gboolean attendees;
if (comp) {
g_return_val_if_fail (E_IS_CAL_COMPONENT (comp), FALSE);
@@ -91,10 +92,18 @@ delete_component_dialog (ECalComponent *comp,
switch (vtype) {
case E_CAL_COMPONENT_EVENT:
- if (arg0)
- id = "calendar:prompt-delete-titled-appointment";
- else
- id = "calendar:prompt-delete-appointment";
+ attendees = e_cal_component_has_attendees (comp);
+ if (arg0) {
+ if (attendees)
+ id = "calendar:prompt-delete-titled-meeting";
+ else
+ id = "calendar:prompt-delete-titled-appointment";
+ } else {
+ if (attendees)
+ id = "calendar:prompt-delete-meeting";
+ else
+ id = "calendar:prompt-delete-appointment";
+ }
break;
case E_CAL_COMPONENT_TODO: