mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Generate date string for the dive list dynamically
.. and sort based on the 'time_t' value itself. This allows us to use a more compact date format that doesn't need to sort alphabetically, because sorting by date is always based on the date value. So we can use just a two-digit year, and skip the seconds, to keep the column narrow, while still sorting correctly. Also, "Depth" is a nice header string, but it is wider than the column itself, which makes the whole column wider than necessary. So put the units in the header instead of in the string, keeping things narrow. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
230a13476d
commit
aab4d593bd
4 changed files with 30 additions and 43 deletions
1
dive.c
1
dive.c
|
@ -253,7 +253,6 @@ struct dive *try_to_merge(struct dive *a, struct dive *b)
|
|||
memset(res, 0, dive_size(alloc_samples));
|
||||
|
||||
res->when = a->when;
|
||||
res->name = merge_text(a->name, b->name);
|
||||
res->location = merge_text(a->location, b->location);
|
||||
res->notes = merge_text(a->notes, b->notes);
|
||||
MERGE_MAX(res, a, b, maxdepth.mm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue