From f7ac9ca10a14643dabe456e197a9be3fe06cb30a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 4 Oct 2010 18:44:04 +0200 Subject: Bug #615835 - Alarm not working for authenticated calendars --- calendar/gui/alarm-notify/alarm-notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/alarm-notify/alarm-notify.c') diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c index df6a8fc4f7..7722a7ee24 100644 --- a/calendar/gui/alarm-notify/alarm-notify.c +++ b/calendar/gui/alarm-notify/alarm-notify.c @@ -374,12 +374,13 @@ alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource const gchar *name = e_source_get_property (source, "auth-domain"); if (!name) - name = e_source_peek_name (source); + name = "Calendar"; if (!e_passwords_get_password (name, pass_key)) { g_mutex_unlock (an->priv->mutex); g_free (str_uri); g_free (pass_key); + return; } } @@ -394,6 +395,7 @@ alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource e_cal_set_default_timezone (client, config_data_get_timezone (), NULL); e_cal_open_async (client, FALSE); } + g_free (str_uri); g_free (pass_key); g_mutex_unlock (an->priv->mutex); -- cgit v1.2.3