mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Drop surface events when reading from an XML file too
Remember those useless surface events that we ignore when we import a dive from a dive computer? Yeah, they exist in the libdivelog xml files too. So ignore them when we see them there too. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
33b6d09000
commit
d9ca1b6fbf
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ static void event_start(void)
|
|||
|
||||
static void event_end(void)
|
||||
{
|
||||
if (event.name)
|
||||
if (event.name && strcmp(event.name, "surface") != 0)
|
||||
add_event(dive, event.time.seconds, event.type, event.flags, event.value, event.name);
|
||||
event.active = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue