diff options
-rw-r--r-- | src/interaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interaction.c b/src/interaction.c index d048239..25b2806 100644 --- a/src/interaction.c +++ b/src/interaction.c @@ -126,8 +126,8 @@ static void update_duration(long *start, long *dur) { unsigned newdur; - day_edit_duration(*start, *dur, &newdur); - *dur = newdur; + if (day_edit_duration(*start, *dur, &newdur)) + *dur = newdur; } static void update_desc(char **desc) |