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:
Lukas Fleischer 2013-02-01 18:24:02 +01:00
parent 217e66729a
commit e27cf190d0

View File

@ -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);