diff options
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 85bc818f55..41088a3c7e 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1041,6 +1041,7 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, ECalComponent *comp; ECalComponentAlarm *alarm; icalattach *attach; + int flag = 0; comp = cqa->alarms->comp; qa = lookup_queued_alarm (cqa, alarm_id); @@ -1058,12 +1059,15 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, url = icalattach_get_url (attach); - if (url && *url && g_file_test (url, G_FILE_TEST_EXISTS)) + if (url && *url && g_file_test (url, G_FILE_TEST_EXISTS)) { + flag = 1; gnome_sound_play (url); /* this sucks */ - else - gdk_beep (); + } } + if (!flag) + gdk_beep (); + if (attach) icalattach_unref (attach); |