From 2e5b3b9ff9827b040ab4bb4dec2490cbe1e577cd Mon Sep 17 00:00:00 2001 From: Nicel KM Date: Fri, 14 May 2004 11:12:31 +0000 Subject: invoke options dialog even if backend does not support email alarms and 2004-05-14 Nicel KM * gui/dialogs/alarm-page.c (button_options_clicked_cb): invoke options dialog even if backend does not support email alarms and get email address only if supported. svn path=/trunk/; revision=25904 --- calendar/gui/dialogs/alarm-page.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/alarm-page.c b/calendar/gui/dialogs/alarm-page.c index ada79bc984..7a8c687ad7 100644 --- a/calendar/gui/dialogs/alarm-page.c +++ b/calendar/gui/dialogs/alarm-page.c @@ -755,7 +755,8 @@ button_options_clicked_cb (GtkWidget *widget, gpointer data) repeat = !e_cal_get_static_capability (COMP_EDITOR_PAGE (apage)->client, CAL_STATIC_CAPABILITY_NO_ALARM_REPEAT); - if (e_cal_get_alarm_email_address (COMP_EDITOR_PAGE (apage)->client, &email, NULL)) { + if (e_cal_get_static_capability (COMP_EDITOR_PAGE (apage)->client, CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS) + || e_cal_get_alarm_email_address (COMP_EDITOR_PAGE (apage)->client, &email, NULL)) { if (!alarm_options_dialog_run (priv->alarm, email, repeat)) g_message ("button_options_clicked_cb(): Could not create the alarm options dialog"); } -- cgit v1.2.3