diff options
author | Maximilian Güntner <maximilian.guentner@gmail.com> | 2013-11-02 02:12:42 +0100 |
---|---|---|
committer | Maximilian Güntner <maximilian.guentner@gmail.com> | 2013-11-02 02:55:03 +0100 |
commit | 6fe8cb652191728586f3731dcf6688b5a5b3efbb (patch) | |
tree | d579741fecbde7d5c9b66926fcdc40467dcfb480 /divelist.c | |
parent | 2ef80930ff4ac15c7d68e7b3b8935c2121029fd3 (diff) | |
download | subsurface-6fe8cb652191728586f3731dcf6688b5a5b3efbb.tar.gz |
Replaced the tag implementation
The new implementation supports custom tags
which are provided by the user as well as
default tags which are provided by subsurface.
Default tags can be translated and will be written
to XML in their non-localized form.
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c index 858d61533..28d082029 100644 --- a/divelist.c +++ b/divelist.c @@ -735,6 +735,11 @@ void delete_single_dive(int idx) free((void *)dive->buddy); if (dive->suit) free((void *)dive->suit); + if (dive->tag_list) { + taglist_clear(dive->tag_list); + /* Remove head of list */ + free((void *)dive->tag_list); + } free(dive); } @@ -800,8 +805,6 @@ void select_dive(int idx) struct dive *dive = get_dive(idx); if (dive) { /* never select an invalid dive that isn't displayed */ - if (dive->dive_tags & DTAG_INVALID && !prefs.display_invalid_dives) - return; if (!dive->selected) { dive->selected = 1; amount_selected++; |