diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-29 07:23:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-29 07:23:41 -0700 |
commit | 28247d3baa9967fa39772c41077e714c4c533c82 (patch) | |
tree | 7b13f2de12b7bfda58120dafd6dff1ad91750e45 | |
parent | 2101f37c1b81840beda99a7b4e87e938f9e52a7a (diff) | |
parent | 84f570beef789695f080f9109febcff384d98c50 (diff) | |
download | subsurface-28247d3baa9967fa39772c41077e714c4c533c82.tar.gz |
Merge branches 'mingw-port-cleanup' and 'combobox-text-entry-fix' of git://github.com/dirkhh/subsurface
* 'mingw-port-cleanup' of git://github.com/dirkhh/subsurface:
Use Registry on Windows to store preferences
* 'combobox-text-entry-fix' of git://github.com/dirkhh/subsurface:
Update the known locations / buddies / divemasters as user enters them
-rw-r--r-- | info.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |