mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Desktop: fix time editing
We were shifting in the wrong direction. Which caused the field to be marked as 'edited' again, which meant we shifted the wrong way and twice the distance. This seems to fix the problem for both date and time editing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2e230da361
commit
ca496c63ae
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ static void shiftTime(QDateTime &dateTime)
|
|||
|
||||
timestamp_t when = dateTime.toTime_t();
|
||||
if (current_dive && current_dive->when != when) {
|
||||
timestamp_t offset = current_dive->when - when;
|
||||
timestamp_t offset = when - current_dive->when;
|
||||
Command::shiftTime(dives, (int)offset);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue