summaryrefslogtreecommitdiffstats
path: root/src/interaction.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-02 16:39:16 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-02 16:39:16 +0100
commit308ba7c983c34c9b9b7d46f360f689b609c1f802 (patch)
tree686d277869d4426f7c200373cead8e939250fa3d /src/interaction.c
parent9a6df45c4b44ca2a9559add78c1bfe692ec485b8 (diff)
parent93767ce29c6ea41c40808276aa0ae9fc60d5eca5 (diff)
downloadcalcurse-308ba7c983c34c9b9b7d46f360f689b609c1f802.tar.gz
calcurse-308ba7c983c34c9b9b7d46f360f689b609c1f802.zip
Merge branch 'maint'
Diffstat (limited to 'src/interaction.c')
-rw-r--r--src/interaction.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interaction.c b/src/interaction.c
index d048239..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);
@@ -126,8 +127,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)