aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index fa04a63daa..d6fda7d37c 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -825,9 +825,12 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa,
const char *url;
url = icalattach_get_url (attach);
- g_assert (url != NULL);
- gnome_sound_play (url); /* this sucks */
+ if (url && *url) {
+ gnome_sound_init ("localhost");
+ gnome_sound_play (url); /* this sucks */
+ } else
+ gdk_beep ();
}
if (attach)