mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
698a6c5345
commit
4c04fe5316
1 changed files with 2 additions and 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue