From 4c04fe531636dbb21efaa267283aef07248c7ccd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 27 Feb 2013 12:53:57 -0800 Subject: 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 --- gtk-gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk-gui.c b/gtk-gui.c index a68047464..8f36a133b 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -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; -- cgit v1.2.3-70-g09d2