summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notify.c')
-rwxr-xr-xsrc/notify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c
index cf57ef3..72741ed 100755
--- a/src/notify.c
+++ b/src/notify.c
@@ -1,4 +1,4 @@
-/* $calcurse: notify.c,v 1.46 2009/08/13 17:30:42 culot Exp $ */
+/* $calcurse: notify.c,v 1.47 2009/08/17 10:04:39 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -82,7 +82,9 @@ notify_time_left (void)
unsigned
notify_needs_reminder (void)
{
- if (notify_app.got_app & !(notify_app.state & APOINT_NOTIFIED))
+ if (notify_app.got_app
+ && (notify_app.state & APOINT_NOTIFY)
+ && !(notify_app.state & APOINT_NOTIFIED))
return 1;
return 0;
}