summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-07 08:13:23 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-07 08:13:23 -0800
commit85ed689dc0d6ab07386153151f6ac232adb91a8f (patch)
tree6dc5946cb20487e6e3ffca1cc6b439064480a1ab /gtk-gui.c
parentd281ad84fdce7990a09402c212885c7268ad8bd9 (diff)
downloadsubsurface-85ed689dc0d6ab07386153151f6ac232adb91a8f.tar.gz
Support relative times in diveplanner input "on the fly" mode
This had gotten lost when updating the profile on the fly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 70be30120..6c39d25fe 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1395,7 +1395,7 @@ static gboolean duration_focus_out_cb(GtkWidget *entry, GdkEvent * event, gpoint
durationtext = strdup(gtk_entry_get_text(GTK_ENTRY(entry)));
if (validate_time(durationtext, &duration, &is_rel)) {
- add_duration_to_nth_dp(&diveplan, idx, duration);
+ add_duration_to_nth_dp(&diveplan, idx, duration, is_rel);
show_planned_dive();
} else {
/* we need to instead change the color of the input field or something */