summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-27 12:53:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-27 13:55:15 -0800
commit4c04fe531636dbb21efaa267283aef07248c7ccd (patch)
tree26ea4be7e51c51cebdb49cf7afb813439a71fa34 /gtk-gui.c
parent698a6c5345d607502cb16031f5e2c144d1b1ad7a (diff)
downloadsubsurface-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.c2
1 files changed, 2 insertions, 0 deletions
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;