diff options
Diffstat (limited to 'calendar/gui/alarm-notify/alarm.c')
-rw-r--r-- | calendar/gui/alarm-notify/alarm.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c index 3d371d9f9b..d29ad3133a 100644 --- a/calendar/gui/alarm-notify/alarm.c +++ b/calendar/gui/alarm-notify/alarm.c @@ -167,16 +167,14 @@ queue_alarm (AlarmRecord *ar) /* Insert the new alarm in order if the alarm's trigger time is after the current time */ - if (ar->trigger > time (NULL)) { - alarms = g_list_insert_sorted (alarms, ar, compare_alarm_by_time); + alarms = g_list_insert_sorted (alarms, ar, compare_alarm_by_time); - /* If there first item on the list didn't change, the time out is fine */ - if (old_head == alarms) - return; + /* If there first item on the list didn't change, the time out is fine */ + if (old_head == alarms) + return; - /* Set the timer for removal upon activation */ - setup_timeout (); - } + /* Set the timer for removal upon activation */ + setup_timeout (); } |