From 4d9c30d42450077ac569c9e9e4d8690a2d38ff68 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 28 Oct 2014 16:27:10 -0700 Subject: Explicit first gas only on first sample Instead of the 30 second heuristic we only assume that this is an explicit first gas if the event coincides the first sample. Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveeventitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index bd9735a96..cceaaa5e7 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -131,7 +131,7 @@ bool DiveEventItem::shouldBeHidden() * Don't bother showing those */ struct sample *first_sample = &get_dive_dc(&displayed_dive, dc_number)->sample[0]; - if (!strcmp(event->name, "gaschange") && (event->time.seconds < 30 || event->time.seconds == first_sample->time.seconds)) + if (!strcmp(event->name, "gaschange") && event->time.seconds == first_sample->time.seconds) return true; for (int i = 0; i < evn_used; i++) { -- cgit v1.2.3-70-g09d2