summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 11:50:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 11:56:36 -0700
commita221a6e9f5ff7a9460beaa0fbb4da53e5616eca1 (patch)
tree037460f49384e1bb1ccaeb1195080e1f66f959b8 /qt-ui/maintab.h
parentd568f96d053dad4ded8a5e8baf8c361e4b04fd12 (diff)
downloadsubsurface-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 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 3d51f72d6..acebc6d43 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -98,7 +98,6 @@ private:
SuitCompletionModel suitModel;
TagCompletionModel tagModel;
DivePictureModel *divePictureModel;
- struct dive editedDive; // when editing we do all changes on a copy of the real data and only apply when saved
Completers completers;
void resetPallete();
void saveTags();