diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-17 15:58:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-19 21:44:13 -0700 |
commit | 94521c9958f5416311318826450825fcbaede4ce (patch) | |
tree | 725dbf97b3feca84b8b3a67072668bacfbea9692 /core/liquivision.c | |
parent | 726d08c2f71920acd8e5cc9b2d6850d1249466aa (diff) | |
download | subsurface-94521c9958f5416311318826450825fcbaede4ce.tar.gz |
Cleanup: remove bogus mark_divelist_changed() calls
The parsers / downloaders parse into a separate table and do
not directly change the divelist. Therefore, they shouldn't
call mark_divelist_changed().
Likewise split_dive_at() doesn't modify the dive list and
therefore shouldn't call this function.
Calling the function has the unwanted side-effect that undoing
the change will not clear the *-symbol in the title of the
main window.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/liquivision.c')
-rw-r--r-- | core/liquivision.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/liquivision.c b/core/liquivision.c index 01e9843c1..e5b3ea48b 100644 --- a/core/liquivision.c +++ b/core/liquivision.c @@ -424,7 +424,6 @@ static void parse_dives(int log_version, const unsigned char *buf, unsigned int // End dive record_dive_to_table(dive, table); dive = NULL; - mark_divelist_changed(true); // Advance ptr for next dive ptr += ps_ptr + 4; |