diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-21 14:20:03 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-21 14:20:03 -0500 |
commit | 512c42e38aec8b424135c967b8f12a92621ba702 (patch) | |
tree | 693d023d058b81d1f6a73ea6567ea313f66fb995 /qt-ui/divelistview.h | |
parent | b940f078b5039046118c9b6bb2b8998a2a6088cb (diff) | |
download | subsurface-512c42e38aec8b424135c967b8f12a92621ba702.tar.gz |
Dive list: seriously simplify the "add to trip" code
The existing code seemed way complicated, made way too many assumptions
and apparently was broken in certain cases.
This code seems very simple, looks correct and should fail gracefully
(i.e. simply do nothing) if things get confused.
Fixes #706
(I hope)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r-- | qt-ui/divelistview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index 7ab409b42..332c1795f 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -79,7 +79,7 @@ private: void updateLastUsedImageDir(const QString &s); void updateLastImageTimeOffset(int offset); int lastImageTimeOffset(); - void addToTrip(bool); + void addToTrip(int delta); }; #endif // DIVELISTVIEW_H |