diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-07-06 00:09:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-05 15:54:20 -0700 |
commit | e864c365c77dd385f038c432446573c402dee819 (patch) | |
tree | 3e82e908ba2411f7b93d9b1c6f981e31537568ba | |
parent | a7d18a9fa649e1f6e9b7d553e286abce8a430b9a (diff) | |
download | subsurface-e864c365c77dd385f038c432446573c402dee819.tar.gz |
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>
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |