From 64e6e435f82801f4f440ef5b1caf58a91a7c9929 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 11 Nov 2018 13:09:51 +0100 Subject: Core: remove "when" field of struct dive_trip The when field gives the time of the first dive. Instead of keeping this field in sync, replace it by a function that determines the time of the first dive. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index b61c9ab78..567e1737f 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -909,10 +909,6 @@ void MainTab::acceptChanges() Command::shiftTime(selectedDives, (int)offset); } } - if (editMode != TRIP && current_dive->divetrip) { - current_dive->divetrip->when = current_dive->when; - find_new_trip_start_time(current_dive->divetrip); - } if (editMode == MANUALLY_ADDED_DIVE) { // we just added or edited the dive, let fixup_dive() make // sure we get the max. depth right -- cgit v1.2.3-70-g09d2