diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-22 00:11:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-24 10:05:27 -0700 |
commit | 3d4698c0a19c452bc322d4be529c7036c61c8c4d (patch) | |
tree | a1e90d6b9fd3e5d56d2f00e5ef528a495bddb1c0 /core | |
parent | 89784a176efb52558b3fa103401fd7d8d2be0fe5 (diff) | |
download | subsurface-3d4698c0a19c452bc322d4be529c7036c61c8c4d.tar.gz |
filter: add a week to maximum default date time
The filter sets the maximum date to now. This is so confusing when
you manually add a dive and it isn't shown, because it is slightly
in the future. Add seven days, that should help.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/divefilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divefilter.h b/core/divefilter.h index 37024be47..8a6384291 100644 --- a/core/divefilter.h +++ b/core/divefilter.h @@ -77,7 +77,7 @@ struct FilterData { double maxAirTemp = 200; QDateTime fromDate = QDateTime(QDate(1980,1,1)); QTime fromTime = QTime(0,0); - QDateTime toDate = QDateTime::currentDateTime(); + QDateTime toDate = QDateTime::currentDateTime().addDays(7); QTime toTime = QTime::currentTime(); QStringList tags; QStringList people; |