mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: move clearing of device nodes to clear_dive_file_data()
It makes no sense to keep the device nodes if all the other data is cleared. Let's do this automatically and not explicitly. This ensures that the function is also called on mobile. Currently it was only called on desktop. Weirdly, the parser-tests were expecting that the device nodes were not reset by clear_dive_file_data() and therefore divecomputers were accumulating in the test results. Thus, the additional computers had to be removed from the expected test results. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
52f93ea326
commit
17526ded58
11 changed files with 9 additions and 23 deletions
|
@ -1,7 +1,5 @@
|
|||
<divelog program='subsurface' version='3'>
|
||||
<settings>
|
||||
<divecomputerid model='Vyper Air' deviceid='013749e4' serial='20400612'/>
|
||||
<divecomputerid model='Vyper Air' deviceid='ffffffff' serial='20400612'/>
|
||||
</settings>
|
||||
<divesites>
|
||||
<site uuid='64785a00' name='USA, Hoodsport, WA / Sund Rock' gps='47.400269 -123.142632'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue