diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-27 12:53:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-27 13:55:15 -0800 |
commit | 4c04fe531636dbb21efaa267283aef07248c7ccd (patch) | |
tree | 26ea4be7e51c51cebdb49cf7afb813439a71fa34 /gtk-gui.c | |
parent | 698a6c5345d607502cb16031f5e2c144d1b1ad7a (diff) | |
download | subsurface-4c04fe531636dbb21efaa267283aef07248c7ccd.tar.gz |
Add all dive computers to the device_info_list
Calling set_dc_nickname() only added a new entry if there was a conflict
with an existing one - which works fine if we are reading a file saved by
Subsurface, as there the device_info_list is populated at parse time, but
fails for data imported from other sources.
Fixes #74
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2037,6 +2037,8 @@ void set_dc_nickname(struct dive *dive) remember_dc(dc->model, dc->deviceid, NULL); } gtk_widget_destroy(dialog); + } else { + remember_dc(dc->model, dc->deviceid, NULL); } } dc = dc->next; |