From 3d4698c0a19c452bc322d4be529c7036c61c8c4d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 22 Apr 2020 00:11:45 +0200 Subject: 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 --- core/divefilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2