aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-17 10:04:38 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-17 10:04:38 +0000
commitccd4b4c4110c0cbc49ac393dc2c6de4bef60983a (patch)
treee716322c63af69c480b0c6c4af3e0324999d499a
parent8ba49be8564aca874f6b9dc537ff360ac6ea4757 (diff)
downloadcalcurse-ccd4b4c4110c0cbc49ac393dc2c6de4bef60983a.tar.gz
calcurse-ccd4b4c4110c0cbc49ac393dc2c6de4bef60983a.zip
Do not send notifications when running in background mode if user did not flag its appointment.
-rwxr-xr-xChangeLog5
-rwxr-xr-xsrc/notify.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b717d37..5c20ed8 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-17 Frederic Culot <frederic@culot.org>
+
+ * src/notify.c (notify_needs_reminder): do not request for
+ notification if user did not flag its appointment
+
2009-08-13 Frederic Culot <frederic@culot.org>
* src/notify.c (notify_thread_app): possible deadlock fixed
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;
}