aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/alarm-page.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4b950c5e4f..ee7b6c652e 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-13 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/dialogs/alarm-page.c (add_clicked_cb): only get the email address
+ for alarms if the backend supports email alarms.
+
2004-05-13 Not Zed <NotZed@Ximian.com>
Fixes #57644.
diff --git a/calendar/gui/dialogs/alarm-page.c b/calendar/gui/dialogs/alarm-page.c
index c3fec99683..ada79bc984 100644
--- a/calendar/gui/dialogs/alarm-page.c
+++ b/calendar/gui/dialogs/alarm-page.c
@@ -680,8 +680,9 @@ add_clicked_cb (GtkButton *button, gpointer data)
e_cal_component_alarm_set_action (alarm, action);
if (action == E_CAL_COMPONENT_ALARM_EMAIL && !e_cal_component_alarm_has_attendees (alarm)) {
char *email;
-
- 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)) {
ECalComponentAttendee *a;
GSList attendee_list;