aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/info.c b/info.c
index 83ba09b2a..9b71b6591 100644
--- a/info.c
+++ b/info.c
@@ -53,6 +53,7 @@ void flush_dive_info_changes(struct dive *dive)
char *new_text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(location));
old_text = dive->location;
dive->location = new_text;
+ add_location(new_text);
if (text_changed(old_text,dive->location))
changed = 1;
if (old_text)
@@ -63,6 +64,7 @@ void flush_dive_info_changes(struct dive *dive)
char *new_text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(divemaster));
old_text = dive->divemaster;
dive->divemaster = new_text;
+ add_people(new_text);
if (text_changed(old_text,dive->divemaster))
changed = 1;
if (old_text)
@@ -73,6 +75,7 @@ void flush_dive_info_changes(struct dive *dive)
char *new_text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(buddy));
old_text = dive->buddy;
dive->buddy = new_text;
+ add_people(new_text);
if (text_changed(old_text,dive->buddy))
changed = 1;
if (old_text)