aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-12-04 23:19:24 +0800
committerMilan Crha <mcrha@redhat.com>2012-12-04 23:20:08 +0800
commit0178cb5aab44454ff40d1bf9d66b461feacfeca1 (patch)
treef96a61edb9c7b1725b9a9179ff8f36fd4c6812b0 /calendar/gui
parent6d0b5ba95fbbc95e35151939d93114d3e73fc4bb (diff)
downloadgsoc2013-evolution-0178cb5aab44454ff40d1bf9d66b461feacfeca1.tar.gz
gsoc2013-evolution-0178cb5aab44454ff40d1bf9d66b461feacfeca1.tar.zst
gsoc2013-evolution-0178cb5aab44454ff40d1bf9d66b461feacfeca1.zip
Bug #449081 - Drop read-only calendar error message
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-calendar-view.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index bc3dc89618..2801391952 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1526,29 +1526,7 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view,
priv = cal_view->priv;
default_client = e_cal_model_get_default_client (priv->model);
-
- if (!default_client || !e_client_is_opened (E_CLIENT (default_client))) {
- g_warning ("Default client not loaded \n");
- return;
- }
-
- if (e_client_is_readonly (E_CLIENT (default_client))) {
- GtkWidget *widget;
- ESource *source;
-
- source = e_client_get_source (E_CLIENT (default_client));
-
- widget = e_alert_dialog_new_for_args (
- parent, "calendar:prompt-read-only-cal",
- e_source_get_display_name (source),
- NULL);
-
- g_signal_connect (
- widget, "response",
- G_CALLBACK (gtk_widget_destroy), widget);
- gtk_widget_show (widget);
- return;
- }
+ g_return_if_fail (default_client != NULL);
dt.value = &itt;
if (all_day)