diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-02 11:50:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-02 11:56:36 -0700 |
commit | a221a6e9f5ff7a9460beaa0fbb4da53e5616eca1 (patch) | |
tree | 037460f49384e1bb1ccaeb1195080e1f66f959b8 /dive.h | |
parent | d568f96d053dad4ded8a5e8baf8c361e4b04fd12 (diff) | |
download | subsurface-a221a6e9f5ff7a9460beaa0fbb4da53e5616eca1.tar.gz |
UI restructure: use a global variable to hold the dive we show / edit
There is massive confusion about what we display when and where and which
dive structure (or pointer to a dive structure) contains which information
at which stage. This is the first step towards restructuring all of this.
This creates a global variable displayed_dive which at any point in time
should be what is displayed on screen (both in the profile and in the
maintab). It removes the editedDive concept from MainTab.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -414,7 +414,7 @@ struct dive_table { }; extern struct dive_table dive_table; - +extern struct dive displayed_dive; extern int selected_dive; extern unsigned int dc_number; #define current_dive (get_dive(selected_dive)) |