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 <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2015-07-06 00:09:19 +02:00 committed by Dirk Hohndel
parent a7d18a9fa6
commit e864c365c7

View file

@ -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);
}