From 73213d3c79a566ccc3ec4ce5a3201b6b18ace1b3 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 20 Dec 2018 19:03:44 +0100 Subject: 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 --- desktop-widgets/command_divelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp index 5fb52a809..b85b9a65f 100644 --- a/desktop-widgets/command_divelist.cpp +++ b/desktop-widgets/command_divelist.cpp @@ -600,7 +600,7 @@ ShiftTime::ShiftTime(const QVector &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); -- cgit v1.2.3-70-g09d2