Do not send notifications when running in background mode if user did not flag its appointment.

This commit is contained in:
Frederic Culot 2009-08-17 10:04:38 +00:00
parent 8ba49be856
commit ccd4b4c411
2 changed files with 9 additions and 2 deletions

View File

@ -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> 2009-08-13 Frederic Culot <frederic@culot.org>
* src/notify.c (notify_thread_app): possible deadlock fixed * src/notify.c (notify_thread_app): possible deadlock fixed

View File

@ -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 * Calcurse - text-based organizer
@ -82,7 +82,9 @@ notify_time_left (void)
unsigned unsigned
notify_needs_reminder (void) 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 1;
return 0; return 0;
} }