aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r--calendar/gui/e-cal-popup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index fd91bed407..89cae6de73 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -549,7 +549,7 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
guint32 mask = ~0;
ECal *client;
gboolean read_only, user_org = FALSE;
-
+
/* FIXME: This is duplicated in e-cal-menu */
t->model = model;
@@ -599,6 +599,9 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
if (e_cal_util_component_has_attendee (comp_data->icalcomp))
mask &= ~E_CAL_POPUP_SELECT_MEETING;
+ if (!e_cal_get_save_schedules (comp_data->client))
+ mask &= ~E_CAL_POPUP_SELECT_NOSAVESCHEDULES;
+
if (e_cal_util_component_has_organizer (comp_data->icalcomp)) {
if (itip_organizer_is_user (comp, comp_data->client)) {
@@ -790,6 +793,7 @@ static const EPopupHookTargetMask ecalph_select_masks[] = {
{ "delegate", E_CAL_POPUP_SELECT_DELEGATABLE },
{ "accept", E_CAL_POPUP_SELECT_ACCEPTABLE },
{ "not-complete", E_CAL_POPUP_SELECT_NOTCOMPLETE },
+ { "no-save-schedules", E_CAL_POPUP_SELECT_NOSAVESCHEDULES },
{ 0 }
};