diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 08:52:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 08:52:11 -0700 |
commit | 1a978a0345a1e817f37850954e169d3543b2fb93 (patch) | |
tree | bcb8899a211273f43d72ff873e9a19f222e65ac7 /qt-ui/maintab.h | |
parent | aa4cd3403275e3fc557f6d4f0e9a7c7d87e26756 (diff) | |
download | subsurface-1a978a0345a1e817f37850954e169d3543b2fb93.tar.gz |
Maintab: fix trip location / notes editing
Reusing the displayed_dive for this caused all kind of odd problems that
were hard to reproduce, because the behavior depended on what was in the
corresponding fields of the current_dive. Worse: the GPS location handling
prevented us from reliably removing the location of a trip.
The solution isn't ideal and certainly isn't elegant. Maybe we simply
shouldn't reuse the widget here. But I think what I have now works - I
tried hard to make it break again and couldn't.
Fixes #659
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 8f690b5c9..20a72d09a 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -104,6 +104,8 @@ private: void saveTags(); void updateGpsCoordinates(const struct dive *dive); void markChangedWidget(QWidget *w); + dive_trip_t *currentTrip; + dive_trip_t displayedTrip; }; #endif // MAINTAB_H |