diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-11 12:53:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-11 15:49:50 -0700 |
commit | 0c4e1697db2d9e15a05bc76056fca13e9ccb9ba4 (patch) | |
tree | f46f240c6f19cf0c46e817190e451ab96e023fe1 /divelist.h | |
parent | 61d0aa10e1a88ac2e5ddcab9e0f05a729b3ab9e9 (diff) | |
download | subsurface-0c4e1697db2d9e15a05bc76056fca13e9ccb9ba4.tar.gz |
Be more careful about unit changes
When we change units, we need to flush any currently active dive
information in the old units, and then carefully reload it in the new
units.
Otherwise crazy stuff happens - like having current cylinder working
pressure values that are in PSI because that *used* to be the output
unit, but then interpreting those values as BAR, because we changed the
units.
Also, since we now properly import working pressure from Diving Log,
stop importing the (useless) cylinder description. The Diving Log
cylinder descriptions are things like "Alu" or "Steel". We're better
off just making up our own.
Finally, since Diving Log has cylinder size in metric, make sure that we
do the "match standard cylinder sizes" *after* we've done all the
cylinder size conversions to proper units.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/divelist.h b/divelist.h index 2d6c5dce6..797a89641 100644 --- a/divelist.h +++ b/divelist.h @@ -10,9 +10,6 @@ struct DiveList { GtkTreeViewColumn *date, *depth, *duration; }; -extern int selected_dive; -#define current_dive (get_dive(selected_dive)) - extern struct DiveList dive_list_create(void); extern void dive_list_update_dives(struct DiveList); extern void update_dive_list_units(struct DiveList *); |