aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c11
-rw-r--r--calendar/gui/tasks-component.c11
2 files changed, 0 insertions, 22 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 61f0aae690..3b84151b1f 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -955,17 +955,6 @@ create_new_event (CalendarComponent *calendar_component, CalendarComponentView *
if (!ecal)
return FALSE;
- if (!e_cal_is_read_only (ecal, &read_only, NULL) || read_only) {
- GtkWidget *dialog;
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _("Selected calendar is read-only, events cannot be created. Please select a read-write calendar."));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- return TRUE;
- }
-
if (component_view && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (component_view->calendar)))) {
GnomeCalendarViewType view_type;
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index 2f76ce0110..9f5edbcda0 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -791,17 +791,6 @@ create_new_todo (TasksComponent *task_component, TasksComponentView *component_v
if (!ecal)
return FALSE;
- if (!e_cal_is_read_only (ecal, &read_only, NULL) || read_only) {
- GtkWidget *dialog;
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _("Selected task list is read-only, events cannot be created. Please select a read-write calendar."));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- return TRUE;
- }
-
editor = task_editor_new (ecal);
comp = cal_comp_task_new_with_defaults (ecal);