aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.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/todo.c
parent8220580918078bebcd339fdc7492ab28223552b4 (diff)
downloadcalcurse-b1d3178bba66089726e6f93a49af97371bdf5db8.tar.gz
calcurse-b1d3178bba66089726e6f93a49af97371bdf5db8.zip
small bugfixes and a major one (freeze when deleting an appointment's note, thanks Jan for reporting it)
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/todo.c b/src/todo.c
index 16c9a79..68d5eb5 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.27 2008/12/12 20:44:50 culot Exp $ */
+/* $calcurse: todo.c,v 1.28 2008/12/15 20:02:00 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -239,7 +239,7 @@ todo_delete (conf_t *conf)
"Delete (t)odo or just its (n)ote ?");
char *erase_choice = _("[t/n] ");
bool go_for_todo_del = false;
- int answer = 0, has_note;
+ int answer, has_note;
if (conf->confirm_delete)
{
@@ -264,7 +264,7 @@ todo_delete (conf_t *conf)
return;
}
- answer = 0;
+ answer = -1;
has_note = (todo_get_item (hilt)->note != NULL) ? 1 : 0;
if (has_note == 0)
answer = 't';