mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
a7d18a9fa6
commit
e864c365c7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue