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 <[email protected]> --- 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 b614e83..732d2a3 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; -- 1.9.1 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
