diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-12-20 19:03:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-22 12:56:49 +1300 |
commit | cfc4fca6ad0ca298fd284d0e0403a464a1bb6820 (patch) | |
tree | d49b6617ad3807b9ac5a8c5ac505188dacbb83ed /desktop-widgets/command_divelist.cpp | |
parent | fa4dd05dfd28b45113fb3d7ebac2f993126a3906 (diff) | |
download | subsurface-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.cpp | 2 |
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); |