aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index efc33cf040..7c97374a87 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -536,9 +536,6 @@ calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalen
bonobo_ui_component_set_prop (uic, "/commands/Paste", "sensitive",
default_read_only ? "0" : "1",
NULL);
- bonobo_ui_component_set_prop (uic, "/commands/Delete", "sensitive",
- n_selected == 0 || selected_read_only ? "0" : "1",
- NULL);
/* occurrence-related menu items */
has_recurrences = FALSE;
@@ -550,6 +547,9 @@ calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalen
}
}
+ bonobo_ui_component_set_prop (uic, "/commands/Delete", "sensitive",
+ n_selected == 0 || selected_read_only || has_recurrences ? "0" : "1",
+ NULL);
bonobo_ui_component_set_prop (uic, "/commands/DeleteOccurrence", "sensitive",
has_recurrences ? "1" : "0",
NULL);