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, 6 insertions, 1 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index b0a6aa8dda..0a57e78ad7 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -383,7 +383,12 @@ load_missed_alarms (ClientAlarms *ca)
now = time (NULL);
g_assert (saved_notification_time != -1);
- load_alarms (ca, saved_notification_time, now);
+
+ /* We add 1 to the saved_notification_time to make the time ranges
+ * half-open; we do not want to display the "last" displayed alarm
+ * twice, once when it occurs and once when the alarm daemon restarts.
+ */
+ load_alarms (ca, saved_notification_time + 1, now);
}
/* Called when a calendar client finished loading; we load its alarms */