From e864c365c77dd385f038c432446573c402dee819 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 6 Jul 2015 00:09:19 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c0f5434d7..f698dbb36 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); } -- cgit v1.2.3-70-g09d2