Skip start time update if prompt is canceled
See commit 217e66729a249a638863a9cc2ff93b8368cd6094 for details. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
217e66729a
commit
e27cf190d0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user