summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 12:09:48 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 12:19:20 -0700
commitaab4d593bdbffef8442282318778a9833cbc7a43 (patch)
tree42d1deea38a5c9155c9138a0af85d14d04198e8a /dive.c
parent230a13476d9af732cb60b2c0393feeadb5b39e67 (diff)
downloadsubsurface-aab4d593bdbffef8442282318778a9833cbc7a43.tar.gz
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>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index 757622fe7..5ddb6bc80 100644
--- a/dive.c
+++ b/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);