summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-21 14:20:03 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-21 14:20:03 -0500
commit512c42e38aec8b424135c967b8f12a92621ba702 (patch)
tree693d023d058b81d1f6a73ea6567ea313f66fb995 /qt-ui/divelistview.h
parentb940f078b5039046118c9b6bb2b8998a2a6088cb (diff)
downloadsubsurface-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.h2
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