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>
This commit is contained in:
Dirk Hohndel 2013-02-27 12:53:57 -08:00
parent 698a6c5345
commit 4c04fe5316

View file

@ -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;