summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interaction.c3
1 files changed, 2 insertions, 1 deletions
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);