From e27cf190d05e6b07cba1dfe47dd2426a3c167056 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 1 Feb 2013 18:24:02 +0100 Subject: Skip start time update if prompt is canceled See commit 217e66729a249a638863a9cc2ff93b8368cd6094 for details. Signed-off-by: Lukas Fleischer --- src/interaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interaction.c b/src/interaction.c index 25b2806..c313ce9 100644 --- a/src/interaction.c +++ b/src/interaction.c @@ -107,7 +107,8 @@ static void update_start_time(long *start, long *dur) const char *msg_enter = _("Press [Enter] to continue"); do { - day_edit_time(*start, &hr, &mn); + if (!day_edit_time(*start, &hr, &mn)) + break; newtime = update_time_in_date(*start, hr, mn); if (newtime < *start + *dur) { *dur -= (newtime - *start); -- cgit v1.2.3