summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-07 21:53:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-08 09:03:33 -0700
commit344c85f4993176148e4fff718278d9692bcf39b7 (patch)
treee86b7d8a780c494508639e4e2ef583e3cc71e143 /desktop-widgets/tab-widgets/maintab.h
parent826387a4b0f177c5b645c2483ca4fb11c76e01dc (diff)
downloadsubsurface-344c85f4993176148e4fff718278d9692bcf39b7.tar.gz
Desktop: display trip time on main-tab
On the main tab, the trip time was not shown when switching to a trip. Implement showing of the trip date in a function, as the undo-code will also have to update the trip date in certain circumstances. Fixes #2207 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.h')
-rw-r--r--desktop-widgets/tab-widgets/maintab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index 671f22ac4..2d620eff1 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -52,7 +52,8 @@ slots:
void updateDiveInfo();
void updateNotes(const struct dive *d);
void updateMode(struct dive *d);
- void updateDateTime(struct dive *d);
+ void updateDateTime(const struct dive *d);
+ void updateTripDate(const struct dive_trip *t);
void updateDiveSite(struct dive *d);
void acceptChanges();
void rejectChanges();