From 3b99b03133c06bfa74cf1ceec31ad33293615010 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 17 Jul 2014 08:55:03 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveeventitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2