summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-12-20 19:03:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-22 12:56:49 +1300
commitcfc4fca6ad0ca298fd284d0e0403a464a1bb6820 (patch)
treed49b6617ad3807b9ac5a8c5ac505188dacbb83ed /desktop-widgets/command_divelist.cpp
parentfa4dd05dfd28b45113fb3d7ebac2f993126a3906 (diff)
downloadsubsurface-cfc4fca6ad0ca298fd284d0e0403a464a1bb6820.tar.gz
core: shift dive time in correct direction
Unsure where this bug got introduced, but when asking for the dive time to be shifted 1 hour later, the divelist and the dive details showed 1 our earlier. Fixes: #1893 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets/command_divelist.cpp')
-rw-r--r--desktop-widgets/command_divelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp
index e129fefdd..d518784cd 100644
--- a/desktop-widgets/command_divelist.cpp
+++ b/desktop-widgets/command_divelist.cpp
@@ -600,7 +600,7 @@ ShiftTime::ShiftTime(const QVector<dive *> &changedDives, int amount)
void ShiftTime::redoit()
{
for (dive *d: diveList)
- d->when -= timeChanged;
+ d->when += timeChanged;
// Changing times may have unsorted the dive table
sort_table(&dive_table);