summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-17 08:55:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-17 00:04:44 -0700
commit3b99b03133c06bfa74cf1ceec31ad33293615010 (patch)
treeb8135fc2bafdcd86c3a2312d0c3d953a0d6bc7fc
parent6f8dc22e08cfbbed5670cff6b7b68ec651611d04 (diff)
downloadsubsurface-3b99b03133c06bfa74cf1ceec31ad33293615010.tar.gz
Hide gachange events in the first 30 seconds
Back in 4.0 we hide all gaschange events during the first 30 seconds, not just gaschange events on second 0. Eg, the OSTC3 emits its gaschange event on the first sample, which can be 2, 10 or 30 seconds into the dive. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/diveeventitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp
index b614e8301..732d2a344 100644
--- a/qt-ui/profile/diveeventitem.cpp
+++ b/qt-ui/profile/diveeventitem.cpp
@@ -127,7 +127,7 @@ bool DiveEventItem::shouldBeHidden()
*
* Don't bother showing them if they match the first gas already
*/
- if (!strcmp(event->name, "gaschange") && !event->time.seconds) {
+ if (!strcmp(event->name, "gaschange") && event->time.seconds <= 30) {
struct dive *dive = current_dive;
if (dive && get_cylinder_index(dive, event) == 0)
return true;