From 616677fb347607a84d4879d78d0a2dc8e1bc3f91 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 14 May 2013 12:01:42 +0200 Subject: Support punctual appointments in the UI Allow for skipping the end date which means that a punctual appointment will be created. Implements FR#25. Signed-off-by: Lukas Fleischer --- src/ui-day.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/ui-day.c b/src/ui-day.c index 647d038..a9dca9a 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -476,6 +476,10 @@ void ui_day_item_add(void) if (getstring(win[STA].p, item_time, LDUR, 0, 1) == GETSTRING_ESC) return; + if (strlen(item_time) == 0) { + apoint_duration = 0; + break; + } if (*item_time == '+' && parse_duration(item_time + 1, &apoint_duration) == 1) -- cgit v1.2.3