From 2d868b16d18fd936cc1a4b022b23dd588f7dbcf6 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 6 Jul 2015 00:09:19 +0200 Subject: [PATCH 2/2] Correct logic At least my compiler warns about ! binding stronger than == and thus comparing a bool to an int. I guess this is what was meant. Signed-off-by: Robert C. Helling --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c0f5434..f698dbb 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -966,7 +966,7 @@ void MainTab::acceptChanges() fixup_dive(d); } } - if (!editMode == TRIP && current_dive->divetrip) { + if (editMode != TRIP && current_dive->divetrip) { current_dive->divetrip->when = current_dive->when; find_new_trip_start_time(current_dive->divetrip); } -- 1.9.5 (Apple Git-50.3)