summaryrefslogtreecommitdiff
path: root/src/apoint.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-12-15 20:02:00 +0000
committerFrederic Culot <calcurse@culot.org>2008-12-15 20:02:00 +0000
commitb1d3178bba66089726e6f93a49af97371bdf5db8 (patch)
tree1a1bb5ea6c9c4147c6358b2929210e163684b28d /src/apoint.c
parent8220580918078bebcd339fdc7492ab28223552b4 (diff)
downloadcalcurse-b1d3178bba66089726e6f93a49af97371bdf5db8.zip
small bugfixes and a major one (freeze when deleting an appointment's note, thanks Jan for reporting it)
Diffstat (limited to 'src/apoint.c')
-rwxr-xr-xsrc/apoint.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 1b067ba..75b2235 100755
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -1,4 +1,4 @@
-/* $calcurse: apoint.c,v 1.27 2008/12/14 15:54:51 culot Exp $ */
+/* $calcurse: apoint.c,v 1.28 2008/12/15 20:02:00 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -269,9 +269,7 @@ apoint_delete (conf_t *conf, unsigned *nb_events, unsigned *nb_apoints)
to_be_removed = 3;
}
else if (deleted_item_type == 0)
- {
- to_be_removed = 0;
- }
+ return;
else
EXIT (_("no such type"));
/* NOTREACHED */
@@ -425,7 +423,10 @@ apoint_delete_bynum (long start, unsigned num, erase_flag_e flag)
if (n == num)
{
if (flag == ERASE_FORCE_ONLY_NOTE)
- erase_note (&i->note, flag);
+ {
+ erase_note (&i->note, flag);
+ pthread_mutex_unlock (&(alist_p->mutex));
+ }
else
{
if (notify_bar ())